summaryrefslogtreecommitdiffstats
path: root/models/migrations/v21.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v21.go')
-rw-r--r--models/migrations/v21.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/models/migrations/v21.go b/models/migrations/v21.go
index e049727cbe..890f4de227 100644
--- a/models/migrations/v21.go
+++ b/models/migrations/v21.go
@@ -51,8 +51,5 @@ func useNewPublickeyFormat(x *xorm.Engine) error {
}
f.Close()
- if err = os.Rename(tmpPath, fpath); err != nil {
- return err
- }
- return nil
+ return os.Rename(tmpPath, fpath)
}