Cleanup, get rid of warnings

This commit is contained in:
Stephan
2018-05-03 15:09:56 +02:00
parent bcf46eceb6
commit 3495331005
24 changed files with 31 additions and 68 deletions

View File

@@ -19,7 +19,10 @@ namespace Umbraco.Web.Components
//Send notifications for the published action
ContentService.Published += (sender, args) =>
args.PublishedEntities.ForEach(content => notificationService.SendNotification(content, ActionPublish.Instance));
{
foreach (var content in args.PublishedEntities)
notificationService.SendNotification(content, ActionPublish.Instance);
};
//Send notifications for the update and created actions
ContentService.Saved += (sender, args) =>
@@ -48,11 +51,17 @@ namespace Umbraco.Web.Components
//Send notifications for the delete action
ContentService.Deleted += (sender, args) =>
args.DeletedEntities.ForEach(content => notificationService.SendNotification(content, ActionDelete.Instance));
{
foreach (var content in args.DeletedEntities)
notificationService.SendNotification(content, ActionDelete.Instance);
};
//Send notifications for the unpublish action
ContentService.UnPublished += (sender, args) =>
args.PublishedEntities.ForEach(content => notificationService.SendNotification(content, ActionUnPublish.Instance));
{
foreach (var content in args.PublishedEntities)
notificationService.SendNotification(content, ActionUnPublish.Instance);
};
}
}
}