diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-09-19 01:08:30 -0700 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-09-19 11:08:30 +0300 |
commit | 4cb9394a978af75794d43accc231b6649f2884bc (patch) | |
tree | 06df979841396c51d292eb5a078ece1c8af11fd9 /modules/log/file.go | |
parent | d155d0e6656df7b7699a4a6b60889689d6678ef5 (diff) | |
download | gitea-4cb9394a978af75794d43accc231b6649f2884bc.tar.gz gitea-4cb9394a978af75794d43accc231b6649f2884bc.zip |
Fix lint errors (#2547)
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) { |