@@ -34,9 +34,9 @@ type Sketch struct {
34
34
MainFile * paths.Path
35
35
FullPath * paths.Path // FullPath is the path to the Sketch folder
36
36
BuildPath * paths.Path
37
- OtherSketchFiles * paths.PathList // Sketch files that end in .ino other than main file
38
- AdditionalFiles * paths.PathList
39
- RootFolderFiles * paths.PathList // All files that are in the Sketch root
37
+ OtherSketchFiles paths.PathList // Sketch files that end in .ino other than main file
38
+ AdditionalFiles paths.PathList
39
+ RootFolderFiles paths.PathList // All files that are in the Sketch root
40
40
Metadata * Metadata
41
41
}
42
42
@@ -80,9 +80,9 @@ func New(path *paths.Path) (*Sketch, error) {
80
80
MainFile : mainFile ,
81
81
FullPath : path ,
82
82
BuildPath : GenBuildPath (path ),
83
- OtherSketchFiles : new ( paths.PathList ) ,
84
- AdditionalFiles : new ( paths.PathList ) ,
85
- RootFolderFiles : new ( paths.PathList ) ,
83
+ OtherSketchFiles : paths.PathList {} ,
84
+ AdditionalFiles : paths.PathList {} ,
85
+ RootFolderFiles : paths.PathList {} ,
86
86
}
87
87
88
88
err := sketch .checkSketchCasing ()
@@ -139,9 +139,9 @@ func New(path *paths.Path) (*Sketch, error) {
139
139
}
140
140
}
141
141
142
- sort .Sort (sketch .AdditionalFiles )
143
- sort .Sort (sketch .OtherSketchFiles )
144
- sort .Sort (sketch .RootFolderFiles )
142
+ sort .Sort (& sketch .AdditionalFiles )
143
+ sort .Sort (& sketch .OtherSketchFiles )
144
+ sort .Sort (& sketch .RootFolderFiles )
145
145
146
146
if err := sketch .importMetadata (); err != nil {
147
147
return nil , fmt .Errorf ("importing sketch metadata: %s" , err )
0 commit comments