Skip to content

Commit

Permalink
libcontainer/configs: adjust the file mode
Browse files Browse the repository at this point in the history
This commit adjusts the file mode to use the latest golang style
Related to opencontainers#2625

Signed-off-by: Kenta Tada <[email protected]>
  • Loading branch information
Kenta Tada authored and Kenta Tada committed Mar 8, 2021
1 parent 59ad417 commit e56a658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/configs/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ exit 0
verifyCommand := fmt.Sprintf(verifyCommandTemplate, stateJson)
filename := "/tmp/runc-hooktest.sh"
os.Remove(filename)
if err := ioutil.WriteFile(filename, []byte(verifyCommand), 0700); err != nil {
if err := ioutil.WriteFile(filename, []byte(verifyCommand), 0o700); err != nil {
t.Fatalf("Failed to create tmp file: %v", err)
}
defer os.Remove(filename)
Expand Down

0 comments on commit e56a658

Please sign in to comment.