fix(lint): be compliant with golangci-lint
All checks were successful
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 20s
Lint Markdown files / Run markdown linter (push) Successful in 3s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 35s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m3s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 19s

This commit is contained in:
2025-08-12 13:53:32 +02:00
parent b4dcb26b45
commit b0c90c4cb3
3 changed files with 28 additions and 28 deletions

View File

@ -2,7 +2,6 @@ package cmd
import (
"fmt"
"io/ioutil"
"log"
"os"
@ -59,7 +58,8 @@ func runE(cmd *cobra.Command, args []string) error {
return fmt.Errorf("can not find file: %v", file)
}
f, err := ioutil.ReadFile(file)
// #nosec G304
f, err := os.ReadFile(file)
if err != nil {
return fmt.Errorf("can not read file %v: %v", file, err)
}