From 7328b2e18121d3047ac142eaf0c8b048933d17dc Mon Sep 17 00:00:00 2001 From: ivar Date: Tue, 24 Mar 2026 13:47:46 +0100 Subject: fix: resolve compiler warnings about unused variable mutations Changed var to let for baseComponents and utcComponents that are never mutated after initialization. Co-Authored-By: Claude Haiku 4.5 --- Solsnu.Widget/Utilities/SunTimes.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Solsnu.Widget/Utilities') diff --git a/Solsnu.Widget/Utilities/SunTimes.swift b/Solsnu.Widget/Utilities/SunTimes.swift index d3ca7fc..8c7132e 100644 --- a/Solsnu.Widget/Utilities/SunTimes.swift +++ b/Solsnu.Widget/Utilities/SunTimes.swift @@ -74,7 +74,7 @@ class SunTimes { // Step 9: Create date components, handling day boundary crossing let currentCalendar = Calendar.current - var baseComponents = currentCalendar.dateComponents([.year, .month, .day], from: date) + let baseComponents = currentCalendar.dateComponents([.year, .month, .day], from: date) // Sunrise var sunriseComp = baseComponents -- cgit v1.3