Skip to content

Commit aa41922

Browse files
r10rsilvanocerza
authored andcommitted
Add a small comment to the lib.Version nil check.
Signed-off-by: Ruben Jenster <[email protected]>
1 parent d0e93fc commit aa41922

File tree

1 file changed

+2
-0
lines changed
  • arduino/libraries/librariesindex

1 file changed

+2
-0
lines changed

arduino/libraries/librariesindex/index.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func (idx *Index) FindLibraryUpdate(lib *libraries.Library) *Release {
136136
if indexLib == nil {
137137
return nil
138138
}
139+
// library.Version is nil when when the version field in
140+
// a library descriptor is malformed and could not be parsed.
139141
if lib.Version == nil {
140142
return indexLib.Latest
141143
}

0 commit comments

Comments
 (0)