Skip to content

Commit c2e7e70

Browse files
committed
fix:lint
1 parent 9408577 commit c2e7e70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CodeEdit/Features/Notifications/ViewModels/NotificationPanelViewModel.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,16 @@ final class NotificationPanelViewModel: ObservableObject {
238238
}
239239
let shouldShow = !self.visibleNotifications.isEmpty || NotificationManager.shared.unreadCount > 0
240240
if shouldShow && toolbar.items.filter({ $0.itemIdentifier == .notificationItem }).first == nil {
241-
guard let activityItemIdx = toolbar.items.firstIndex(where: { $0.itemIdentifier == .activityViewer }) else {
241+
guard let activityItemIdx = toolbar.items
242+
.firstIndex(where: { $0.itemIdentifier == .activityViewer }) else {
242243
return
243244
}
244245
toolbar.insertItem(withItemIdentifier: .space, at: activityItemIdx + 1)
245246
toolbar.insertItem(withItemIdentifier: .notificationItem, at: activityItemIdx + 2)
246247
}
247248

248-
if !shouldShow, let index = toolbar.items.firstIndex(where: { $0.itemIdentifier == .notificationItem }) {
249+
if !shouldShow, let index = toolbar.items
250+
.firstIndex(where: { $0.itemIdentifier == .notificationItem }) {
249251
toolbar.removeItem(at: index)
250252
toolbar.removeItem(at: index)
251253
}

0 commit comments

Comments
 (0)