Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Duplicati/Server/WebServer/RESTMethods/Notification.cs')
-rw-r--r--Duplicati/Server/WebServer/RESTMethods/Notification.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/Server/WebServer/RESTMethods/Notification.cs b/Duplicati/Server/WebServer/RESTMethods/Notification.cs
index 7abcca55e..14d23bdbc 100644
--- a/Duplicati/Server/WebServer/RESTMethods/Notification.cs
+++ b/Duplicati/Server/WebServer/RESTMethods/Notification.cs
@@ -30,7 +30,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
return;
}
- var el = Program.DataConnection.GetNotifications().Where(x => x.ID == id).FirstOrDefault();
+ var el = Program.DataConnection.GetNotifications().FirstOrDefault(x => x.ID == id);
if (el == null)
info.ReportClientError("No such notification", System.Net.HttpStatusCode.NotFound);
else
@@ -46,7 +46,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
return;
}
- var el = Program.DataConnection.GetNotifications().Where(x => x.ID == id).FirstOrDefault();
+ var el = Program.DataConnection.GetNotifications().FirstOrDefault(x => x.ID == id);
if (el == null)
info.ReportClientError("No such notification", System.Net.HttpStatusCode.NotFound);
else