From c4c01fc030dbc862c818d5ac026be8401a6cbd5c Mon Sep 17 00:00:00 2001 From: Erik Doernenburg Date: Sun, 11 Feb 2024 12:44:16 +0100 Subject: [PATCH] Made variable immutable as suggested by warning. --- CCMenu/Source/Notifications/NotificationFactory.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CCMenu/Source/Notifications/NotificationFactory.swift b/CCMenu/Source/Notifications/NotificationFactory.swift index e89fa30..0a8ab14 100644 --- a/CCMenu/Source/Notifications/NotificationFactory.swift +++ b/CCMenu/Source/Notifications/NotificationFactory.swift @@ -21,7 +21,7 @@ public enum NotificationType: String { class NotificationFactory { func notificationContent(change: StatusChange) -> UNNotificationContent? { - var content = UNMutableNotificationContent() + let content = UNMutableNotificationContent() switch change.kind { case .start: if !shouldSendStartNotification(change: change) {