Fix lint errors (#2547)
This commit is contained in:
parent
d155d0e665
commit
4cb9394a97
9 changed files with 9 additions and 41 deletions
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue