Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎check/checkfunctions/library.go‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /