Skip to content

Commit

Permalink
refactor: suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joonchrislee committed Aug 26, 2022
1 parent 811e17f commit 93a20a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TokenTextView/TokenTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ final class TokenTextView: UITextView {
guard let self = self else { return false }
return self.selectedRange.lowerBound <= $0.range.lowerBound && $0.range.upperBound <= self.selectedRange.upperBound
}
guard let copiedTokenInstances = tokenInstances.filter(filterCondition).map({ $0.copy() as? TokenInstance }) as? [TokenInstance] else {
guard let copiedTokenInstances = tokenInstances.filter(filterCondition).map({ $0.copy() }) as? [TokenInstance] else {
print("Could not get filtered token instances as [TokenInstance]")
return
}
Expand Down

0 comments on commit 93a20a7

Please sign in to comment.