We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f1906 commit 5bd18b2Copy full SHA for 5bd18b2
internal/arduino/libraries/librariesindex/json.go
@@ -126,7 +126,7 @@ func (indexLib *indexRelease) extractReleaseIn(library *Library) {
126
127
func (indexLib *indexRelease) extractDependencies() []*Dependency {
128
res := []*Dependency{}
129
- if indexLib.Dependencies == nil || len(indexLib.Dependencies) == 0 {
+ if len(indexLib.Dependencies) == 0 {
130
return res
131
}
132
for _, indexDep := range indexLib.Dependencies {
internal/cli/lib/examples.go
@@ -104,7 +104,7 @@ func (ir libraryExamplesResult) Data() interface{} {
104
105
106
func (ir libraryExamplesResult) String() string {
107
- if ir.Examples == nil || len(ir.Examples) == 0 {
+ if len(ir.Examples) == 0 {
108
return i18n.Tr("No libraries found.")
109
110
0 commit comments