Skip to content

Commit

Permalink
Removed apparently useless check for "readable" files
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 13, 2024
1 parent afa8e14 commit 3e31b15
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/arduino/sketch/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ func New(path *paths.Path) (*Sketch, error) {

// Collect files
for _, p := range sketchFolderFiles {
// Skip files that can't be opened
f, err := p.Open()
if err != nil {
continue
}
f.Close()

ext := p.Ext()
if globals.MainFileValidExtensions[ext] {
if p.EqualsTo(mainFile) {
Expand Down

0 comments on commit 3e31b15

Please sign in to comment.