Skip to content

Commit

Permalink
fixed small bug with licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-lindner committed May 8, 2022
1 parent 817b1b3 commit 3732bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ParserLicense.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
//MarshalYAML is used to serialise a LicenseContainer
func (t LicenseContainer) MarshalYAML() (interface{}, error) {
for _, license := range t.Data {
if !ReferenceTypeExists(string(license)) {
if !LicenseExists(string(license)) {
return nil, errors.New("invalid license: " + string(license))
}
}
Expand Down

0 comments on commit 3732bb0

Please sign in to comment.