Skip to content

Commit

Permalink
Merge pull request #72 from arduino/per1234/fix-checkfunction-crash
Browse files Browse the repository at this point in the history
Fix crash when running LibraryPropertiesNameFieldGTRecommendedLength check function
  • Loading branch information
per1234 authored Nov 26, 2020
2 parents aaa9cc0 + b64c911 commit 385b1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check/checkfunctions/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func LibraryPropertiesNameFieldGTMaxLength() (result checkresult.Type, output st
// LibraryPropertiesNameFieldGTRecommendedLength checks if the library.properties "name" value is greater than the recommended length.
func LibraryPropertiesNameFieldGTRecommendedLength() (result checkresult.Type, output string) {
if checkdata.LibraryPropertiesLoadError() != nil {
return checkresult.NotRun, checkdata.LibraryProperties().Get("name")
return checkresult.NotRun, ""
}

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

0 comments on commit 385b1e8

Please sign in to comment.