diff --git a/pkg/cron/service.go b/pkg/cron/service.go index 101971009..dc0e0ab0a 100644 --- a/pkg/cron/service.go +++ b/pkg/cron/service.go @@ -345,7 +345,7 @@ func (cs *CronService) saveStoreUnsafe() error { // truncation and completion leaves an empty or partial file. // os.Rename on the same filesystem is atomic on Linux. tmpPath := cs.storePath + ".tmp" - if err := os.WriteFile(tmpPath, data, 0600); err != nil { + if err := os.WriteFile(tmpPath, data, 0o600); err != nil { return err } return os.Rename(tmpPath, cs.storePath)