mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-02 16:35:19 +02:00
Fix lint errors (#2547)
This commit is contained in:
parent
d155d0e665
commit
4cb9394a97
9 changed files with 9 additions and 41 deletions
|
@ -599,11 +599,7 @@ func RewriteAllPublicKeys() error {
|
|||
defer 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