From fffd9fd45b3eb0823cd2cdd3e04374d692bc5acf Mon Sep 17 00:00:00 2001 From: JP Simard Date: Thu, 31 May 2018 09:25:16 +1000 Subject: [PATCH] Remove explicit Range initializers these don't compile with Swift trunk and don't appear to be necessary. --- .../Rules/DiscouragedOptionalCollectionRule.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/SwiftLintFramework/Rules/DiscouragedOptionalCollectionRule.swift b/Source/SwiftLintFramework/Rules/DiscouragedOptionalCollectionRule.swift index 52bed16f7..f8849a525 100644 --- a/Source/SwiftLintFramework/Rules/DiscouragedOptionalCollectionRule.swift +++ b/Source/SwiftLintFramework/Rules/DiscouragedOptionalCollectionRule.swift @@ -99,7 +99,7 @@ private extension String { let finalIndex = index(range.upperBound, offsetBy: 1, limitedBy: endIndex), self[range.upperBound] == "?" else { return nil } - return Range(range.lowerBound..").compactMap { range -> Range? in @@ -110,7 +110,7 @@ private extension String { self[initialIndex..