diff options
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/hook.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/hook.go b/modules/git/hook.go index 2b9f90efd3..2de36dbdef 100644 --- a/modules/git/hook.go +++ b/modules/git/hook.go @@ -96,7 +96,7 @@ func (h *Hook) Update() error { return err } - err := ioutil.WriteFile(h.path, []byte(strings.Replace(h.Content, "\r", "", -1)), os.ModePerm) + err := ioutil.WriteFile(h.path, []byte(strings.ReplaceAll(h.Content, "\r", "")), os.ModePerm) if err != nil { return err } |