Skip to content

Commit 1ce3572

Browse files
sapklafriks
authored andcommitted
Remove useless check (#3384)
In #3377, I put check inside all write key function. This one is useless no.
1 parent 05ab747 commit 1ce3572

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

models/ssh_key.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,6 @@ func addKey(e Engine, key *PublicKey) (err error) {
387387
return err
388388
}
389389

390-
// Don't need to rewrite this file if builtin SSH server is enabled.
391-
if setting.SSH.StartBuiltinServer {
392-
return nil
393-
}
394390
return appendAuthorizedKeysToFile(key)
395391
}
396392

0 commit comments

Comments
 (0)