Skip to content

Commit faf2954

Browse files
committed
Removed deprecated package
1 parent c21e5b7 commit faf2954

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/libraries/lint.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ package libraries
2626
import (
2727
"encoding/json"
2828
"fmt"
29-
"io/ioutil"
3029
"os"
3130
"os/exec"
3231
"path/filepath"
@@ -55,7 +54,7 @@ func RunArduinoLint(arduinoLintPath string, folder string, metadata *Repo) ([]by
5554
arduinoLintPath = "arduino-lint"
5655
}
5756

58-
JSONReportFolder, err := ioutil.TempDir("", "arduino-lint-report-")
57+
JSONReportFolder, err := os.MkdirTemp("", "arduino-lint-report-")
5958
if err != nil {
6059
panic(err)
6160
}
@@ -82,7 +81,7 @@ func RunArduinoLint(arduinoLintPath string, folder string, metadata *Repo) ([]by
8281
}
8382

8483
// Read report.
85-
rawJSONReport, err := ioutil.ReadFile(JSONReportPath)
84+
rawJSONReport, err := os.ReadFile(JSONReportPath)
8685
if err != nil {
8786
panic(err)
8887
}

0 commit comments

Comments
 (0)