From 05e9fe4b062d7ae215a05f7870fdd977455f24ec Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 5 May 2019 00:16:11 -0700 Subject: [PATCH] More linting. --- Clocker/Dependencies/Date Additions/Date+Components.swift | 6 ------ Clocker/Preferences/General/PreferencesViewController.swift | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Clocker/Dependencies/Date Additions/Date+Components.swift b/Clocker/Dependencies/Date Additions/Date+Components.swift index b38eed6..6766ef4 100755 --- a/Clocker/Dependencies/Date Additions/Date+Components.swift +++ b/Clocker/Dependencies/Date Additions/Date+Components.swift @@ -69,7 +69,6 @@ public extension Date { stepLarger = Calendar.Component.era stepSmaller = Calendar.Component.year unitRange = calendar.range(of: stepSmaller, in: stepLarger, for: self) - break case 1: if smaller.hashValue > 2 { break @@ -78,7 +77,6 @@ public extension Date { stepSmaller = Calendar.Component.month unitRange = calendar.range(of: stepSmaller, in: stepLarger, for: self) } - break case 2: if larger.hashValue < 2 { if self.isInLeapYear { @@ -91,22 +89,18 @@ public extension Date { stepSmaller = Calendar.Component.day unitRange = calendar.range(of: stepSmaller, in: stepLarger, for: self) } - break case 3: stepLarger = Calendar.Component.day stepSmaller = Calendar.Component.hour unitRange = calendar.range(of: stepSmaller, in: stepLarger, for: self) - break case 4: stepLarger = Calendar.Component.hour stepSmaller = Calendar.Component.minute unitRange = calendar.range(of: stepSmaller, in: stepLarger, for: self) - break case 5: stepLarger = Calendar.Component.minute stepSmaller = Calendar.Component.second unitRange = calendar.range(of: stepSmaller, in: stepLarger, for: self) - break default: return nil } diff --git a/Clocker/Preferences/General/PreferencesViewController.swift b/Clocker/Preferences/General/PreferencesViewController.swift index 8fe4e0a..53d6630 100644 --- a/Clocker/Preferences/General/PreferencesViewController.swift +++ b/Clocker/Preferences/General/PreferencesViewController.swift @@ -27,9 +27,7 @@ class PreferencesViewController: ParentViewController { } private var selectedTimeZones: [Data] { - get { - return DataStore.shared().timezones() - } + return DataStore.shared().timezones() } private var filteredArray: [Any] = []