1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05: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:
Antoine GIRARD 2018-01-19 20:45:53 +01:00 committed by Lauris BH
parent 05ab747054
commit 1ce3572409

View File

@ -387,10 +387,6 @@ func addKey(e Engine, key *PublicKey) (err error) {
return err
}
// Don't need to rewrite this file if builtin SSH server is enabled.
if setting.SSH.StartBuiltinServer {
return nil
}
return appendAuthorizedKeysToFile(key)
}