Skip to content

Commit 0976e8e

Browse files
committed
Add a small comment to the lib.Version nil check.
Signed-off-by: Ruben Jenster <r.jenster@drachenfels.de>
1 parent c1b6732 commit 0976e8e

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

arduino/libraries/librariesindex/index.go

+2
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)