Skip to content

Commit 3e31b15

Browse files
committed
Removed apparently useless check for "readable" files
1 parent afa8e14 commit 3e31b15

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: internal/arduino/sketch/sketch.go

-7
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ func New(path *paths.Path) (*Sketch, error) {
116116

117117
// Collect files
118118
for _, p := range sketchFolderFiles {
119-
// Skip files that can't be opened
120-
f, err := p.Open()
121-
if err != nil {
122-
continue
123-
}
124-
f.Close()
125-
126119
ext := p.Ext()
127120
if globals.MainFileValidExtensions[ext] {
128121
if p.EqualsTo(mainFile) {

0 commit comments

Comments
 (0)