Skip to content

Commit db10911

Browse files
committed
Removed unneeded pointer
1 parent 8115da1 commit db10911

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/arduino/sketch/sketch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func New(path *paths.Path) (*Sketch, error) {
115115
}
116116

117117
// Collect files
118-
for _, p := range *sketchFolderFiles {
118+
for _, p := range sketchFolderFiles {
119119
// Skip files that can't be opened
120120
f, err := p.Open()
121121
if err != nil {
@@ -160,7 +160,7 @@ func New(path *paths.Path) (*Sketch, error) {
160160

161161
// supportedFiles reads all files recursively contained in Sketch and
162162
// filter out unneded or unsupported ones and returns them
163-
func (s *Sketch) supportedFiles() (*paths.PathList, error) {
163+
func (s *Sketch) supportedFiles() (paths.PathList, error) {
164164
filterValidExtensions := func(p *paths.Path) bool {
165165
return globals.MainFileValidExtensions[p.Ext()] || globals.AdditionalFileValidExtensions[p.Ext()]
166166
}
@@ -180,7 +180,7 @@ func (s *Sketch) supportedFiles() (*paths.PathList, error) {
180180
if err != nil {
181181
return nil, err
182182
}
183-
return &files, nil
183+
return files, nil
184184
}
185185

186186
// GetProfile returns the requested profile or an error if not found

0 commit comments

Comments
 (0)