Skip to content

Commit 385b1e8

Browse files
authored
Merge pull request #72 from arduino/per1234/fix-checkfunction-crash
Fix crash when running LibraryPropertiesNameFieldGTRecommendedLength check function
2 parents aaa9cc0 + b64c911 commit 385b1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: check/checkfunctions/library.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func LibraryPropertiesNameFieldGTMaxLength() (result checkresult.Type, output st
144144
// LibraryPropertiesNameFieldGTRecommendedLength checks if the library.properties "name" value is greater than the recommended length.
145145
func LibraryPropertiesNameFieldGTRecommendedLength() (result checkresult.Type, output string) {
146146
if checkdata.LibraryPropertiesLoadError() != nil {
147-
return checkresult.NotRun, checkdata.LibraryProperties().Get("name")
147+
return checkresult.NotRun, ""
148148
}
149149

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

0 commit comments

Comments
 (0)