diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lfs/content_store.go | 5 | ||||
-rw-r--r-- | modules/log/file.go | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go index 94bb10136f..3e1b2f345b 100644 --- a/modules/lfs/content_store.go +++ b/modules/lfs/content_store.go @@ -70,10 +70,7 @@ func (s *ContentStore) Put(meta *models.LFSMetaObject, r io.Reader) error { return errHashMismatch } - if err := os.Rename(tmpPath, path); err != nil { - return err - } - return nil + return os.Rename(tmpPath, path) } // Exists returns true if the object exists in the content store. 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) { |