From 3a1fa25a6fe1765641703baebd2a423f30975f20 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 22 Jan 2026 19:08:13 +0530 Subject: [PATCH] refactor: streamline markAllAsRead method in notifications API service - Simplified the return statement in the markAllAsRead method for improved readability and consistency. --- surfsense_web/lib/apis/notifications-api.service.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/surfsense_web/lib/apis/notifications-api.service.ts b/surfsense_web/lib/apis/notifications-api.service.ts index a2489cdee..aff220f17 100644 --- a/surfsense_web/lib/apis/notifications-api.service.ts +++ b/surfsense_web/lib/apis/notifications-api.service.ts @@ -83,12 +83,8 @@ class NotificationsApiService { * Mark all notifications as read */ markAllAsRead = async (): Promise => { - return baseApiService.patch( - "/api/v1/notifications/read-all", - markAllNotificationsReadResponse - ); + return baseApiService.patch("/api/v1/notifications/read-all", markAllNotificationsReadResponse); }; } export const notificationsApiService = new NotificationsApiService(); -