mirror of
https://github.com/go-gitea/gitea
synced 2025-08-12 12:38:20 +00:00
Backport: Fix lint, fmt and integration testing errors (#2553)
* Fix lint errors * Fix fmt errors (#2544) * Hotfix for integration testing (#2473) * Hotfix for integration testing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user