Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed Jan 11, 2024
1 parent a2d1d99 commit 36ee948
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/App/Fossa/Analyze.hs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ analyze cfg = Diag.context "fossa-analyze" $ do
logDebug $ "Unfiltered project scans: " <> pretty (show projectScans)

let filteredProjects = mapMaybe toProjectResult projectScans
logDebug $ "Filtered project scans: " <> pretty (show projectScans)
logDebug $ "Filtered project scans: " <> pretty (show filteredProjects)

maybeEndpointAppVersion <- case destination of
UploadScan apiOpts _ -> runFossaApiClient apiOpts $ do
Expand Down Expand Up @@ -394,7 +394,6 @@ analyze cfg = Diag.context "fossa-analyze" $ do
(Just firstParty, Nothing) -> Just firstParty
let keywordSearchResultsFound = (maybe False (not . null . lernieResultsKeywordSearches) lernieResults)
let outputResult = buildResult includeAll additionalSourceUnits filteredProjects' licenseSourceUnits
logDebug $ "Source unit result: " <> pretty (show outputResult)

-- If we find nothing but keyword search, we exit with an error, but explain that the error may be ignorable.
-- We do not want to succeed, because nothing gets uploaded to the API for keyword searches, so `fossa test` will fail.
Expand Down

0 comments on commit 36ee948

Please sign in to comment.