From ea33f68c856602a6ee50f2fe279ef353359e4f60 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Thu, 15 Dec 2016 00:36:16 -0800 Subject: [PATCH] fix compilation on Linux --- Source/SwiftLintFramework/Rules/VoidReturnRule.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SwiftLintFramework/Rules/VoidReturnRule.swift b/Source/SwiftLintFramework/Rules/VoidReturnRule.swift index 97ab87b23..22897cb85 100644 --- a/Source/SwiftLintFramework/Rules/VoidReturnRule.swift +++ b/Source/SwiftLintFramework/Rules/VoidReturnRule.swift @@ -58,7 +58,7 @@ public struct VoidReturnRule: ConfigurationProviderRule, CorrectableRule { return file.matchPattern(pattern, excludingSyntaxKinds: kinds, excludingPattern: excludingPattern) { $0.rangeAt(1) }.flatMap { let parensRegex = NSRegularExpression.forcePattern(parensPattern) - return parensRegex.firstMatch(in: file.contents, range: $0)?.range + return parensRegex.firstMatch(in: file.contents, options: [], range: $0)?.range } }