diff options
Diffstat (limited to 'modules/log/file.go')
-rw-r--r-- | modules/log/file.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/log/file.go b/modules/log/file.go index fe6c54ec38..18e82f7228 100644 --- a/modules/log/file.go +++ b/modules/log/file.go @@ -110,10 +110,7 @@ func (w *FileLogWriter) StartLogger() error { return err } w.mw.SetFd(fd) - if err = w.initFd(); err != nil { - return err - } - return nil + return w.initFd() } func (w *FileLogWriter) docheck(size int) { |