mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix lint errors (#2547)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
// ________ .__ ____ __.
|
||||
|
Reference in New Issue
Block a user