We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62595bd commit 3836ff7Copy full SHA for 3836ff7
cardano-cli/src/Cardano/CLI/Shelley/Run/Genesis.hs
@@ -913,10 +913,7 @@ buildPoolParams nw dir index specifiedRelays = do
913
where
914
lookupPoolRelay
915
:: 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
+ lookupPoolRelay m = maybe mempty Seq.fromList (Map.lookup index m)
920
921
strIndex = show index
922
poolColdVKF = dir </> "cold" ++ strIndex ++ ".vkey"
0 commit comments