Skip to content

Commit

Permalink
Use any instead of (or . fmap).
Browse files Browse the repository at this point in the history
  • Loading branch information
chungyc authored Jan 16, 2024
1 parent dbfd933 commit 38d9645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/FilePathSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ hasURI :: Value -> Bool
hasURI (Object v)
| KeyMap.member "uri" v = True
| otherwise = foldr ((||) . hasURI) False v
hasURI (Array vs) = or $ fmap hasURI vs
hasURI (Array vs) = any hasURI vs
hasURI _ = False

0 comments on commit 38d9645

Please sign in to comment.