Skip to content

Commit

Permalink
Router: don't block select breaks in interpolate
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Mar 21, 2020
1 parent dd0d420 commit fcd84d3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1119,8 +1119,7 @@ class Router(formatOps: FormatOps) {
case FormatToken(_, _: T.Dot, _)
if style.newlines.sourceIgnored &&
rightOwner.is[Term.Select] && findTreeWithParent(rightOwner) {
case _: Type.Select | _: Term.Interpolate => Some(true)
case _: Importer | _: Pkg => Some(true)
case _: Type.Select | _: Importer | _: Pkg => Some(true)
case _: Term.Select | SplitCallIntoParts(_, _) => None
case _ => Some(false)
}.isDefined =>
Expand Down

0 comments on commit fcd84d3

Please sign in to comment.