From fc3625653a2eb83eba45bc2df43711fb752d9881 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia Date: Sat, 4 May 2019 16:59:48 -0700 Subject: [PATCH] More linting. --- Clocker/Clocker/LocationController.swift | 12 +++++------- Clocker/Panel/ParentPanelController.swift | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) 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 } }