mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
Fix lint errors (#2547)
This commit is contained in:
parent
d155d0e665
commit
4cb9394a97
9 changed files with 9 additions and 41 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue