Skip to content

Commit

Permalink
Add nolint rule to hostid readFile
Browse files Browse the repository at this point in the history
  • Loading branch information
remychantenay committed Mar 31, 2023
1 parent 0c438e0 commit 3615ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/resource/host_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type fileReader func(string) (string, error)

type commandExecutor func(string, ...string) (string, error)

// nolint: unused // This is used by the hostReaderBSD, gated by build tags.
func readFile(filename string) (string, error) {
b, err := os.ReadFile(filename)
if err != nil {
Expand Down

0 comments on commit 3615ee8

Please sign in to comment.