summaryrefslogtreecommitdiffstats
path: root/Solsnu.Widget/Utilities/SunTimes.swift
diff options
context:
space:
mode:
authorivar <i@oiee.no>2026-03-24 13:47:46 +0100
committerivar <i@oiee.no>2026-03-24 13:47:46 +0100
commit7328b2e18121d3047ac142eaf0c8b048933d17dc (patch)
tree0f3c185941195ed2b49238227f784772565dbf12 /Solsnu.Widget/Utilities/SunTimes.swift
parent9c7074e3bec7059d540c28964d5982f855ca6065 (diff)
downloadsolverv-7328b2e18121d3047ac142eaf0c8b048933d17dc.tar.xz
solverv-7328b2e18121d3047ac142eaf0c8b048933d17dc.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'Solsnu.Widget/Utilities/SunTimes.swift')
-rw-r--r--Solsnu.Widget/Utilities/SunTimes.swift2
1 files changed, 1 insertions, 1 deletions
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