IOs-1561 string digits no need to check for emptyness IOS-1561
authorXavier Algarra <xavier@pep-project.org>
Tue, 06 Aug 2019 17:40:28 +0200
branchIOS-1561
changeset 95661124f1e12118
parent 9540 56a1b52cae43
child 9586 21ba58ea92fa
IOs-1561 string digits no need to check for emptyness
pEpForiOS/Util/Extensions/String+Extension.swift
     1.1 --- a/pEpForiOS/Util/Extensions/String+Extension.swift	Mon Aug 05 16:35:22 2019 +0200
     1.2 +++ b/pEpForiOS/Util/Extensions/String+Extension.swift	Tue Aug 06 17:40:28 2019 +0200
     1.3 @@ -10,9 +10,6 @@
     1.4  
     1.5  extension String {
     1.6      var isDigits: Bool {
     1.7 -        guard !self.isEmpty else {
     1.8 -            return false
     1.9 -        }
    1.10          return self.contains { Int(String($0)) == nil }
    1.11      }
    1.12  }