Skip to content

Commit 3836ff7

Browse files
committed
node: hlint
1 parent 62595bd commit 3836ff7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cardano-cli/src/Cardano/CLI/Shelley/Run/Genesis.hs

+1-4
Original file line numberDiff line numberDiff line change
@@ -913,10 +913,7 @@ buildPoolParams nw dir index specifiedRelays = do
913913
where
914914
lookupPoolRelay
915915
:: Map Word [Ledger.StakePoolRelay] -> Seq.StrictSeq Ledger.StakePoolRelay
916-
lookupPoolRelay m =
917-
case Map.lookup index m of
918-
Just spRelays -> Seq.fromList spRelays
919-
Nothing -> mempty
916+
lookupPoolRelay m = maybe mempty Seq.fromList (Map.lookup index m)
920917

921918
strIndex = show index
922919
poolColdVKF = dir </> "cold" ++ strIndex ++ ".vkey"

0 commit comments

Comments
 (0)