pkg/stack: format code with gofumpt
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
95e99e629c
commit
211d3a8c32
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue