Skip to content

Commit b64c911

Browse files
committed
Fix crash when running LibraryPropertiesNameFieldGTRecommendedLength check function
A copy/paste error resulted in a crash when the check function was run on a library with invalid library.properties.
1 parent 5f24a05 commit b64c911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check/checkfunctions/library.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func LibraryPropertiesNameFieldGTMaxLength() (result checkresult.Type, output st
9292
// LibraryPropertiesNameFieldGTRecommendedLength checks if the library.properties "name" value is greater than the recommended length.
9393
func LibraryPropertiesNameFieldGTRecommendedLength() (result checkresult.Type, output string) {
9494
if checkdata.LibraryPropertiesLoadError() != nil {
95-
return checkresult.NotRun, checkdata.LibraryProperties().Get("name")
95+
return checkresult.NotRun, ""
9696
}
9797

9898
name, ok := checkdata.LibraryProperties().GetOk("name")

0 commit comments

Comments
 (0)