summaryrefslogtreecommitdiffstats
path: root/modules/lfs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lfs')
-rw-r--r--modules/lfs/content_store.go5
1 files changed, 1 insertions, 4 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.