diff --git a/Clocker/Clocker/LocationController.swift b/Clocker/Clocker/LocationController.swift index 467bfa2..272b598 100644 --- a/Clocker/Clocker/LocationController.swift +++ b/Clocker/Clocker/LocationController.swift @@ -66,13 +66,11 @@ class LocationController: NSObject { } } - for timezoneObject in timezoneObjects { - if timezoneObject.isSystemTimezone == true { - timezoneObject.setLabel(customLabel) - if let latlong = coordinates { - timezoneObject.longitude = latlong.longitude - timezoneObject.latitude = latlong.latitude - } + for timezoneObject in timezoneObjects where timezoneObject.isSystemTimezone == true { + timezoneObject.setLabel(customLabel) + if let latlong = coordinates { + timezoneObject.longitude = latlong.longitude + timezoneObject.latitude = latlong.latitude } } diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 6e91b91..0a937b7 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -179,13 +179,11 @@ class ParentPanelController: NSWindowController { } } - for timezoneObject in timezoneObjects { - if timezoneObject.isSystemTimezone == true { - timezoneObject.setLabel(customLabel) - if let latlong = coordinates { - timezoneObject.longitude = latlong.longitude - timezoneObject.latitude = latlong.latitude - } + for timezoneObject in timezoneObjects where timezoneObject.isSystemTimezone == true { + timezoneObject.setLabel(customLabel) + if let latlong = coordinates { + timezoneObject.longitude = latlong.longitude + timezoneObject.latitude = latlong.latitude } }