Use a guard instead of unless

This commit is contained in:
Joseph C. Sible 2020-04-05 20:04:54 -04:00
parent 9027a9239f
commit e8501151dd
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ prop_checkNonportableSignals7 = verifyNot checkNonportableSignals "trap 'stop' i
checkNonportableSignals = CommandCheck (Exactly "trap") (f . arguments)
where
f args = case args of
first:rest -> unless (isFlag first) $ mapM_ check rest
first:rest | not $ isFlag first -> mapM_ check rest
_ -> return ()
check param = sequence_ $ do