diff options
Diffstat (limited to 'models/ssh_key.go')
-rw-r--r-- | models/ssh_key.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go index 649c50be6c..2d06c23f43 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -609,11 +609,7 @@ func RewriteAllPublicKeys() error { defer f.Close() } - if err = os.Rename(tmpPath, fPath); err != nil { - return err - } - - return nil + return os.Rename(tmpPath, fPath) } // ________ .__ ____ __. |