Browse Source

More linting.

pull/92/head
Abhishek Banthia 6 years ago
parent
commit
fc3625653a
  1. 12
      Clocker/Clocker/LocationController.swift
  2. 12
      Clocker/Panel/ParentPanelController.swift

12
Clocker/Clocker/LocationController.swift

@ -66,13 +66,11 @@ class LocationController: NSObject {
} }
} }
for timezoneObject in timezoneObjects { for timezoneObject in timezoneObjects where timezoneObject.isSystemTimezone == true {
if timezoneObject.isSystemTimezone == true { timezoneObject.setLabel(customLabel)
timezoneObject.setLabel(customLabel) if let latlong = coordinates {
if let latlong = coordinates { timezoneObject.longitude = latlong.longitude
timezoneObject.longitude = latlong.longitude timezoneObject.latitude = latlong.latitude
timezoneObject.latitude = latlong.latitude
}
} }
} }

12
Clocker/Panel/ParentPanelController.swift

@ -179,13 +179,11 @@ class ParentPanelController: NSWindowController {
} }
} }
for timezoneObject in timezoneObjects { for timezoneObject in timezoneObjects where timezoneObject.isSystemTimezone == true {
if timezoneObject.isSystemTimezone == true { timezoneObject.setLabel(customLabel)
timezoneObject.setLabel(customLabel) if let latlong = coordinates {
if let latlong = coordinates { timezoneObject.longitude = latlong.longitude
timezoneObject.longitude = latlong.longitude timezoneObject.latitude = latlong.latitude
timezoneObject.latitude = latlong.latitude
}
} }
} }

Loading…
Cancel
Save