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 --- Solverv/Models/SolsticeEvent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Solverv/Models/SolsticeEvent.swift') diff --git a/Solverv/Models/SolsticeEvent.swift b/Solverv/Models/SolsticeEvent.swift index 46c14ac..d8c4a7b 100644 --- a/Solverv/Models/SolsticeEvent.swift +++ b/Solverv/Models/SolsticeEvent.swift @@ -16,7 +16,7 @@ struct SolsticeEvent: Identifiable, Codable { /// Convert UTC date to user's local timezone func localDateTime() -> Date { let utcCalendar = Calendar(identifier: .gregorian) - var utcComponents = utcCalendar.dateComponents([.year, .month, .day, .hour, .minute, .second], from: date) + let utcComponents = utcCalendar.dateComponents([.year, .month, .day, .hour, .minute, .second], from: date) let timeZone = TimeZone.current let offset = timeZone.secondsFromGMT(for: date) -- cgit v1.3