Skip to content

Commit 83294b3

Browse files
committed
Fix arduino-lint report cleanup
1 parent faf2954 commit 83294b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/libraries/lint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func RunArduinoLint(arduinoLintPath string, folder string, metadata *Repo) ([]by
5858
if err != nil {
5959
panic(err)
6060
}
61+
defer os.RemoveAll(JSONReportFolder)
6162
JSONReportPath := filepath.Join(JSONReportFolder, "report.json")
62-
defer os.RemoveAll(JSONReportPath)
6363

6464
// See: https://arduino.github.io/arduino-lint/latest/commands/arduino-lint/
6565
cmd := exec.Command(

0 commit comments

Comments
 (0)