File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments