Skip to content

Commit

Permalink
Merge pull request #315 from rollandf/unconvert
Browse files Browse the repository at this point in the history
lint: fix unconvert issues
  • Loading branch information
adrianchiris authored Jun 13, 2022
2 parents a2b40eb + 90b88df commit 397deba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ linters:
- structcheck
# TODO fix issues- stylecheck
- typecheck
# TODO fix issues- unconvert
- unconvert
# TODO fix issues- unparam
- unused
- varcheck
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/switchdev.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func WriteSwitchdevConfFile(newState *sriovnetworkv1.SriovNetworkNodeState) (upd
}
update = true
glog.V(2).Infof("WriteSwitchdevConfFile(): write '%s' to switchdev.conf", newContent)
err = ioutil.WriteFile(switchDevConfPath, []byte(newContent), 0644)
err = ioutil.WriteFile(switchDevConfPath, newContent, 0644)
if err != nil {
glog.Errorf("WriteSwitchdevConfFile(): fail to write file: %v", err)
return
Expand Down

0 comments on commit 397deba

Please sign in to comment.