Skip to content

Commit

Permalink
Remove dependency on either in launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Feb 27, 2025
1 parent 9f3ff72 commit 2d16070
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/launcher/src/Cardano/Launcher.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ import Control.Tracer
, contramap
, traceWith
)
import Data.Either.Combinators
( leftToMaybe
)
import Data.List
( isPrefixOf
)
Expand Down Expand Up @@ -291,7 +288,7 @@ withBackendCreateProcess tr process mTimeoutSecs ifToSendSigINT action = do
(traceWith tr' MsgLauncherActionDone)
(action $ ProcessHandles mstdin mstdout mstderr ph)

traceWith tr $ MsgLauncherFinish (leftToMaybe res)
traceWith tr $ MsgLauncherFinish $ either Just (const Nothing) res
either throwIO pure res
where
-- Exceptions resulting from the @exec@ call for this command. The most
Expand Down

0 comments on commit 2d16070

Please sign in to comment.