Remove useless check (#3384)

In #3377, I put check inside all write key function. This one is useless no.
tokarchuk/v1.17
Antoine GIRARD 7 years ago committed by Lauris BH
parent 05ab747054
commit 1ce3572409
  1. 4
      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)
}

Loading…
Cancel
Save