pkg/stack: format code with gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-24 17:59:01 +02:00
parent 95e99e629c
commit 211d3a8c32
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -26,7 +26,7 @@ func DumpToFile(dir string) (string, error) {
if dir != "" { if dir != "" {
path := filepath.Join(dir, fmt.Sprintf(stacksLogNameTemplate, strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", ""))) path := filepath.Join(dir, fmt.Sprintf(stacksLogNameTemplate, strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", "")))
var err error 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 { if err != nil {
return "", errors.Wrap(err, "failed to open file to write the goroutine stacks") return "", errors.Wrap(err, "failed to open file to write the goroutine stacks")
} }