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 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‎

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

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