refactor: hlint
This commit is contained in:
parent
9213b7554a
commit
22882c1fa0
@ -164,9 +164,7 @@ withFailover' testTarget' f@Failover{..} mode detAcceptable act = withFailoverRe
|
|||||||
-> fromMaybe (goFirst failover') $ P.next failover'
|
-> fromMaybe (goFirst failover') $ P.next failover'
|
||||||
| otherwise
|
| otherwise
|
||||||
-> failover'
|
-> failover'
|
||||||
where goFirst l = case P.previous l of
|
where goFirst l = maybe l goFirst $ P.previous l
|
||||||
Nothing -> l
|
|
||||||
Just l' -> goFirst l'
|
|
||||||
|
|
||||||
$logDebugS "withFailover'" $ tshow (hashUnique alreadyTested) <> " using item " <> failoverLabel
|
$logDebugS "withFailover'" $ tshow (hashUnique alreadyTested) <> " using item " <> failoverLabel
|
||||||
res' <- handleAll (\err -> $logErrorS "withFailover'" (tshow (hashUnique alreadyTested) <> " exception during act or detAcceptable: " <> tshow err) >> recordFailure >> throwM err) $
|
res' <- handleAll (\err -> $logErrorS "withFailover'" (tshow (hashUnique alreadyTested) <> " exception during act or detAcceptable: " <> tshow err) >> recordFailure >> throwM err) $
|
||||||
|
|||||||
Reference in New Issue
Block a user