Skip to content

Commit cd5a322

Browse files
committed
Lint
1 parent 4d73fde commit cd5a322

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/App/Fossa/Analyze.hs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,14 @@ analyze cfg = Diag.context "fossa-analyze" $ do
342342
if (fromFlag BinaryDiscovery $ Config.binaryDiscoveryEnabled $ Config.vsiOptions cfg)
343343
then analyzeDiscoverBinaries basedir filters
344344
else pure Nothing
345-
let ficusStrategies = case [enableSnippetScan, enableVendetta] of
346-
[True, True] -> [FicusStrategySnippetScan, FicusStrategyVendetta]
347-
[True, False] -> [FicusStrategySnippetScan]
348-
[False, True] -> [FicusStrategyVendetta]
349-
[False, False] -> []
345+
let ficusStrategies =
346+
[ strategy
347+
| (strategy, enabled) <-
348+
[ (FicusStrategySnippetScan, enableSnippetScan)
349+
, (FicusStrategyVendetta, enableVendetta)
350+
]
351+
, enabled
352+
]
350353
maybeFicusResults <-
351354
Diag.errorBoundaryIO . diagToDebug $
352355
if null ficusStrategies

0 commit comments

Comments
 (0)