Skip to content

Commit

Permalink
[gardening] Replace flatMap with map
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Jul 1, 2017
1 parent d53aaad commit 1906b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CarthageKit/ScannableError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public struct ScannableError: Error {

extension ScannableError: CustomStringConvertible {
public var description: String {
return currentLine.flatMap { "\(message) in line: \($0)" } ?? message
return currentLine.map { "\(message) in line: \($0)" } ?? message
}
}

Expand Down

0 comments on commit 1906b1f

Please sign in to comment.