Skip to content

Commit

Permalink
Percentage should be 100% not 10000%
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Mar 8, 2018
1 parent 14583e5 commit efe85d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsers/guesser.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ func guessLicense(content string, deepguess bool, licenses []License) []LicenseM
if strings.Contains(strings.ToLower(content), "not evil") {
// Its JSON
matchingLicenses = []LicenseMatch{}
matchingLicenses = append(matchingLicenses, LicenseMatch{LicenseId: "JSON", Percentage: 100})
matchingLicenses = append(matchingLicenses, LicenseMatch{LicenseId: "JSON", Percentage: 1})
} else {
// Its MIT
matchingLicenses = []LicenseMatch{}
matchingLicenses = append(matchingLicenses, LicenseMatch{LicenseId: "MIT", Percentage: 100})
matchingLicenses = append(matchingLicenses, LicenseMatch{LicenseId: "MIT", Percentage: 1})
}
}

Expand Down

0 comments on commit efe85d7

Please sign in to comment.