Skip to content

Commit

Permalink
Fix stack analysis in case of some repos
Browse files Browse the repository at this point in the history
In case on an error the commit was never
acknowledged and it hanged forever.
  • Loading branch information
peti2001 committed Nov 16, 2021
1 parent 5fe0f8f commit 2137a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ func (r *RepoExtractor) libraryWorker(ctx context.Context, commits <-chan *commi
if fileContents == nil {
fileContents, err = r.getFileContent(commitToAnalyse.Hash, fileChange.Path)
if err != nil {
return err
continue
}
}
lang = languageAnalyzer.DetectLanguageFromFile(fileChange.Path, fileContents)
Expand All @@ -574,7 +574,7 @@ func (r *RepoExtractor) libraryWorker(ctx context.Context, commits <-chan *commi
if fileContents == nil {
fileContents, err = r.getFileContent(commitToAnalyse.Hash, fileChange.Path)
if err != nil {
return err
continue
}
}
fileLibraries, err := analyzer.ExtractLibraries(string(fileContents))
Expand Down

0 comments on commit 2137a02

Please sign in to comment.