Skip to content

Commit

Permalink
Avoid issue with duplicate error about insertion of Nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Sep 16, 2024
1 parent d4fdb07 commit 5162c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/guillotine.Sh.scala
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ object Sh:
case (State(context, _, more :+ current), char) =>
State(context, false, more :+ t"$current$char")

given Insertion[Parameters, Nothing] = value => Parameters(t"")
given Insertion[Parameters, Text] = value => Parameters(value)
given Insertion[Parameters, List[Text]] = xs => Parameters(xs*)
given Insertion[Parameters, Command] = command => Parameters(command.arguments*)
Expand Down

0 comments on commit 5162c3e

Please sign in to comment.