File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
arduino/libraries/librariesindex Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ func (indexLib *indexRelease) extractReleaseIn(library *Library) {
126
126
127
127
func (indexLib * indexRelease ) extractDependencies () []* Dependency {
128
128
res := []* Dependency {}
129
- if indexLib . Dependencies == nil || len (indexLib .Dependencies ) == 0 {
129
+ if len (indexLib .Dependencies ) == 0 {
130
130
return res
131
131
}
132
132
for _ , indexDep := range indexLib .Dependencies {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func (ir libraryExamplesResult) Data() interface{} {
104
104
}
105
105
106
106
func (ir libraryExamplesResult ) String () string {
107
- if ir . Examples == nil || len (ir .Examples ) == 0 {
107
+ if len (ir .Examples ) == 0 {
108
108
return i18n .Tr ("No libraries found." )
109
109
}
110
110
You can’t perform that action at this time.
0 commit comments