From e56a658aa11eeae8d9d0d90c767832a36b970592 Mon Sep 17 00:00:00 2001 From: Kenta Tada Date: Mon, 8 Mar 2021 22:41:08 +0900 Subject: [PATCH] libcontainer/configs: adjust the file mode This commit adjusts the file mode to use the latest golang style Related to #2625 Signed-off-by: Kenta Tada --- libcontainer/configs/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/configs/config_test.go b/libcontainer/configs/config_test.go index 97286740fd6..3b8b6f50c8c 100644 --- a/libcontainer/configs/config_test.go +++ b/libcontainer/configs/config_test.go @@ -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)