diff options
author | Jacob Gadikian <[email protected]> | 2023-08-08 03:40:31 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-07 19:40:31 +0000 |
commit | b32f265ecad60404c3818cc9d42e367a8e4eb7d4 (patch) | |
tree | 16d79c3ad7ddf0cc6f7915d1e47bdd6d269bf8d5 /caddy.go | |
parent | 431adc09805972196314b2b188904942cbe5dfee (diff) | |
download | caddy-b32f265ecad60404c3818cc9d42e367a8e4eb7d4.tar.gz caddy-b32f265ecad60404c3818cc9d42e367a8e4eb7d4.zip |
ci: Use gofumpt to format code (#5707)
Diffstat (limited to 'caddy.go')
-rw-r--r-- | caddy.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -356,13 +356,13 @@ func unsyncedDecodeAndRun(cfgJSON []byte, allowPersist bool) error { newCfg.Admin.Config.Persist == nil || *newCfg.Admin.Config.Persist) { dir := filepath.Dir(ConfigAutosavePath) - err := os.MkdirAll(dir, 0700) + err := os.MkdirAll(dir, 0o700) if err != nil { Log().Error("unable to create folder for config autosave", zap.String("dir", dir), zap.Error(err)) } else { - err := os.WriteFile(ConfigAutosavePath, cfgJSON, 0600) + err := os.WriteFile(ConfigAutosavePath, cfgJSON, 0o600) if err == nil { Log().Info("autosaved config (load with --resume flag)", zap.String("file", ConfigAutosavePath)) } else { @@ -831,7 +831,7 @@ func InstanceID() (uuid.UUID, error) { if err != nil { return uuid, err } - err = os.WriteFile(uuidFilePath, []byte(uuid.String()), 0600) + err = os.WriteFile(uuidFilePath, []byte(uuid.String()), 0o600) return uuid, err } else if err != nil { return [16]byte{}, err |