Skip to content

Commit

Permalink
use optSingle
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Jul 20, 2023
1 parent de69f50 commit aff9da8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Fantomas.Core/CodePrinter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ let genMeasure (measure: Measure) =
+> genMeasure n.RightHandSide
|> genNode n
| Measure.Divide n ->
let lhs = n.LeftHandSide |> Option.map genMeasure |> Option.defaultValue id

lhs
optSingle genMeasure n.LeftHandSide
+> sepSpace
+> genSingleTextNode n.Operator
+> sepSpace
Expand Down

0 comments on commit aff9da8

Please sign in to comment.