Skip to content

Commit 926fa97

Browse files
committed
Update to swift-3.0-RELEASE
1 parent 6855f88 commit 926fa97

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0-PREVIEW-6
1+
3.0

Sources/Commandant/Errors.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ internal func missingArgumentError<ClientError>(_ argumentName: String) -> Comma
4343
/// Constructs an error by combining the example of key (and value, if applicable)
4444
/// with the usage description.
4545
internal func informativeUsageError<ClientError>(_ keyValueExample: String, usage: String) -> CommandantError<ClientError> {
46-
#if os(Linux)
47-
let lines = usage.components(separatedBy: NSCharacterSet.newlines())
48-
#else
4946
let lines = usage.components(separatedBy: .newlines)
50-
#endif
5147

5248
return .usageError(description: lines.reduce(keyValueExample) { previous, value in
5349
return previous + "\n\t" + value

0 commit comments

Comments
 (0)