Browse Source

pkg/stack: format code with gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 year ago
parent
commit
211d3a8c32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/stack/stackdump.go

+ 1 - 1
pkg/stack/stackdump.go

@@ -26,7 +26,7 @@ func DumpToFile(dir string) (string, error) {
 	if dir != "" {
 		path := filepath.Join(dir, fmt.Sprintf(stacksLogNameTemplate, strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", "")))
 		var err error
-		f, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0666)
+		f, err = os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0o666)
 		if err != nil {
 			return "", errors.Wrap(err, "failed to open file to write the goroutine stacks")
 		}