Skip to content

Commit

Permalink
node: hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Aug 12, 2022
1 parent 62595bd commit 3836ff7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cardano-cli/src/Cardano/CLI/Shelley/Run/Genesis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -913,10 +913,7 @@ buildPoolParams nw dir index specifiedRelays = do
where
lookupPoolRelay
:: Map Word [Ledger.StakePoolRelay] -> Seq.StrictSeq Ledger.StakePoolRelay
lookupPoolRelay m =
case Map.lookup index m of
Just spRelays -> Seq.fromList spRelays
Nothing -> mempty
lookupPoolRelay m = maybe mempty Seq.fromList (Map.lookup index m)

strIndex = show index
poolColdVKF = dir </> "cold" ++ strIndex ++ ".vkey"
Expand Down

0 comments on commit 3836ff7

Please sign in to comment.