From 1b39742919acd2a0797db4f1205bda96905597f7 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Thu, 3 Jun 2021 20:56:28 -0700 Subject: [PATCH] Simplify FirstOrDefault method call --- BTCPayServer/HostedServices/WebhookNotificationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/HostedServices/WebhookNotificationManager.cs b/BTCPayServer/HostedServices/WebhookNotificationManager.cs index 1c9037380..a73c96c2d 100644 --- a/BTCPayServer/HostedServices/WebhookNotificationManager.cs +++ b/BTCPayServer/HostedServices/WebhookNotificationManager.cs @@ -125,7 +125,7 @@ namespace BTCPayServer.HostedServices public async Task TestWebhook(string storeId, string webhookId, WebhookEventType webhookEventType) { var delivery = NewDelivery(webhookId); - var webhook = (await StoreRepository.GetWebhooks(storeId)).Where(w => w.Id == webhookId).FirstOrDefault(); + var webhook = (await StoreRepository.GetWebhooks(storeId)).FirstOrDefault(w => w.Id == webhookId); var deliveryRequest = new WebhookDeliveryRequest( webhookId, GetTestWebHook(storeId, webhookId, webhookEventType, delivery),