Skip to content

Commit dbcd232

Browse files
committed
Removed useless pointer parameter
1 parent 415c711 commit dbcd232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: internal/arduino/libraries/loader.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func addExamples(lib *Library) error {
171171
if !file.IsDir() {
172172
continue
173173
}
174-
if err := addExamplesToPathList(file, &examples); err != nil {
174+
if err := addExamplesToPathList(file, examples); err != nil {
175175
return err
176176
}
177177
break
@@ -181,7 +181,7 @@ func addExamples(lib *Library) error {
181181
return nil
182182
}
183183

184-
func addExamplesToPathList(examplesPath *paths.Path, list *paths.PathList) error {
184+
func addExamplesToPathList(examplesPath *paths.Path, list paths.PathList) error {
185185
files, err := examplesPath.ReadDirRecursiveFiltered(nil, paths.AndFilter(paths.FilterDirectories(), filterExamplesDirs))
186186
if err != nil {
187187
return err

0 commit comments

Comments
 (0)