diff options
Diffstat (limited to 'Duplicati/Server/WebServer/RESTMethods/Notification.cs')
-rw-r--r-- | Duplicati/Server/WebServer/RESTMethods/Notification.cs | 4 |
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
|