From 74d44078ccf91114832431305b9b27ddf0e24f6b Mon Sep 17 00:00:00 2001 From: Taylor Ledingham Date: Wed, 15 Aug 2018 10:44:51 -0700 Subject: [PATCH] CMOB-0: fix swiftlint error (#29) --- Sources/TokenTextViewTextStorage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TokenTextViewTextStorage.swift b/Sources/TokenTextViewTextStorage.swift index 7b9f7ae..2fd2f38 100644 --- a/Sources/TokenTextViewTextStorage.swift +++ b/Sources/TokenTextViewTextStorage.swift @@ -244,7 +244,7 @@ class TokenTextViewTextStorage: NSTextStorage { } fileprivate func attributeTextAndRange(_ attributeName: NSAttributedStringKey, attributeValue: String) -> (String, NSRange)? { - var result: (String, NSRange)? = nil + var result: (String, NSRange)? enumerateAttribute(attributeName, in: NSRange(location: 0, length: length), options: NSAttributedString.EnumerationOptions(rawValue: 0),