diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2018-01-19 20:45:53 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-01-19 21:45:53 +0200 |
commit | 1ce35724094f8edc124ffe4b4e1f06a99ad0c646 (patch) | |
tree | 757aa9503612e5be8cbd77ac42527e1e56d77806 | |
parent | 05ab747054adf8617fc2e365bfeaed775cb10746 (diff) | |
download | gitea-1ce35724094f8edc124ffe4b4e1f06a99ad0c646.tar.gz gitea-1ce35724094f8edc124ffe4b4e1f06a99ad0c646.zip |
Remove useless check (#3384)
In #3377, I put check inside all write key function. This one is useless no.
-rw-r--r-- | models/ssh_key.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go index e121b0d5bd..97a2d2dee4 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -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) } |