Lunny Xiao
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
models/ssh_key.go
|
|
@ -685,12 +685,14 @@ func rewriteAllPublicKeys(e Engine) error { |
|
|
|
} |
|
|
|
_, err = t.WriteString(line + "\n") |
|
|
|
if err != nil { |
|
|
|
f.Close() |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
defer f.Close() |
|
|
|
f.Close() |
|
|
|
} |
|
|
|
|
|
|
|
t.Close() |
|
|
|
return os.Rename(tmpPath, fPath) |
|
|
|
} |
|
|
|
|
|
|
|