summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2018-01-19 20:45:53 +0100
committerLauris BH <lauris@nix.lv>2018-01-19 21:45:53 +0200
commit1ce35724094f8edc124ffe4b4e1f06a99ad0c646 (patch)
tree757aa9503612e5be8cbd77ac42527e1e56d77806
parent05ab747054adf8617fc2e365bfeaed775cb10746 (diff)
downloadgitea-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.go4
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)
}