Skip to content

Commit

Permalink
chore: Use os ReadFile instead of ioutil ReadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
noahmmcgivern committed Sep 28, 2023
1 parent f552260 commit 703fe61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/install/validation/integration_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package validation
import (
"errors"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -84,7 +83,7 @@ func readConfig(configPath string) (configType, error) {
return configType{}, err
}

Check warning on line 84 in internal/install/validation/integration_validator.go

View check run for this annotation

Codecov / codecov/patch

internal/install/validation/integration_validator.go#L81-L84

Added lines #L81 - L84 were not covered by tests

b, err := ioutil.ReadFile(configPath)
b, err := os.ReadFile(configPath)

if err != nil {
return configType{}, err
Expand Down

0 comments on commit 703fe61

Please sign in to comment.