mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-06 22:33:14 +00:00
Remove useless check (#3384)
In #3377, I put check inside all write key function. This one is useless no.
This commit is contained in:
parent
05ab747054
commit
1ce3572409
1 changed files with 0 additions and 4 deletions
|
@ -387,10 +387,6 @@ func addKey(e Engine, key *PublicKey) (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't need to rewrite this file if builtin SSH server is enabled.
|
|
||||||
if setting.SSH.StartBuiltinServer {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return appendAuthorizedKeysToFile(key)
|
return appendAuthorizedKeysToFile(key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue