mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Formatting.
This commit is contained in:
parent
b79bbfad62
commit
c6cedbc751
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user