Fix linter errors

This commit is contained in:
Daniel
2022-09-29 14:31:00 +02:00
parent b552e3f7a5
commit fd83534698
9 changed files with 13 additions and 18 deletions

View File

@@ -5,7 +5,6 @@ import (
"encoding/xml"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sort"
@@ -42,7 +41,7 @@ func GetWFPState() (*SimplifiedWFPState, error) {
}
// Get tmp file contents.
output, err := ioutil.ReadFile(tmpFile)
output, err := os.ReadFile(tmpFile)
if err != nil {
return nil, fmt.Errorf("failed to read wfp state to tmp file: %w", err)
}