1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Formatting.

This commit is contained in:
Rob Rix 2015-09-28 22:27:46 -04:00
parent b79bbfad62
commit c6cedbc751

View File

@ -44,9 +44,7 @@ public enum Doc: CustomStringConvertible, Equatable {
}
public static func better(width: Int, _ placed: Int, _ x: Doc, _ y: Doc) -> Doc {
return x.fits(width - placed)
? x
: y
return x.fits(width - placed) ? x : y
}
}