Skip to content

Commit

Permalink
Removed useless pointer parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 12, 2024
1 parent 415c711 commit dbcd232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/arduino/libraries/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func addExamples(lib *Library) error {
if !file.IsDir() {
continue
}
if err := addExamplesToPathList(file, &examples); err != nil {
if err := addExamplesToPathList(file, examples); err != nil {
return err
}
break
Expand All @@ -181,7 +181,7 @@ func addExamples(lib *Library) error {
return nil
}

func addExamplesToPathList(examplesPath *paths.Path, list *paths.PathList) error {
func addExamplesToPathList(examplesPath *paths.Path, list paths.PathList) error {
files, err := examplesPath.ReadDirRecursiveFiltered(nil, paths.AndFilter(paths.FilterDirectories(), filterExamplesDirs))
if err != nil {
return err
Expand Down

0 comments on commit dbcd232

Please sign in to comment.