Browse code

pkg/stack: format code with gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2023/08/25 00:59:01
Showing 1 changed files
... ...
@@ -26,7 +26,7 @@ func DumpToFile(dir string) (string, error) {
26 26
 	if dir != "" {
27 27
 		path := filepath.Join(dir, fmt.Sprintf(stacksLogNameTemplate, strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", "")))
28 28
 		var err error
29
-		f, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0666)
29
+		f, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0o666)
30 30
 		if err != nil {
31 31
 			return "", errors.Wrap(err, "failed to open file to write the goroutine stacks")
32 32
 		}