diff options
Diffstat (limited to 'models/migrations/v115.go')
-rw-r--r-- | models/migrations/v115.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v115.go b/models/migrations/v115.go index fcec1f5495..8222a8ceea 100644 --- a/models/migrations/v115.go +++ b/models/migrations/v115.go @@ -151,7 +151,7 @@ func copyOldAvatarToNewLocation(userID int64, oldAvatar string) (string, error) return newAvatar, nil } - if err := ioutil.WriteFile(filepath.Join(setting.Avatar.Path, newAvatar), data, 0666); err != nil { + if err := ioutil.WriteFile(filepath.Join(setting.Avatar.Path, newAvatar), data, 0o666); err != nil { return "", fmt.Errorf("ioutil.WriteFile: %v", err) } |