Skip to content

Commit

Permalink
remove need for errGenerate
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rutkowski <mrutkows@us.ibm.com>
  • Loading branch information
mrutkows committed Jun 14, 2024
1 parent dfaa607 commit e9d206a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions identifier/identifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,10 @@ func findAllLicensesInNormalizedData(identifierResults *IdentifierResults, licen
}

// Generate Blocks.
blocks, errGenerate := generateTextBlocks(normalizedData.OriginalText, licensesMatched)
if errGenerate != nil {
return errGenerate
identifierResults.Blocks, err = generateTextBlocks(normalizedData.OriginalText, licensesMatched)
if err != nil {
return err
}
identifierResults.Blocks = blocks

return
}
Expand Down

0 comments on commit e9d206a

Please sign in to comment.