diff options
author | James Moger <james.moger@gmail.com> | 2017-05-22 07:47:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 07:47:54 -0400 |
commit | c1d816da6e91037741a47fcd79458fe658a45b1d (patch) | |
tree | 683607a1e3dab5d29e18b77d0c4705632b74e117 | |
parent | e706776879285dd81ace1fe1472593a7cdb45b9c (diff) | |
parent | 31a4c54b86db8e2ac0a5694a8e7afc9af3108ec9 (diff) | |
download | gitblit-c1d816da6e91037741a47fcd79458fe658a45b1d.tar.gz gitblit-c1d816da6e91037741a47fcd79458fe658a45b1d.zip |
Merge pull request #1239 from pingunaut/1226_sshkey_form_feedback
1226 sshkey form feedback
-rw-r--r-- | src/main/java/com/gitblit/manager/ServicesManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/manager/ServicesManager.java b/src/main/java/com/gitblit/manager/ServicesManager.java index 74f58c65..b993eb66 100644 --- a/src/main/java/com/gitblit/manager/ServicesManager.java +++ b/src/main/java/com/gitblit/manager/ServicesManager.java @@ -276,7 +276,7 @@ public class ServicesManager implements IServicesManager { Iterator<RepositoryUrl> itr = list.iterator(); while (itr.hasNext()) { RepositoryUrl url = itr.next(); - if (url.transport != null && url.transport.equals(preferredTransport)) { + if (url.transport.equals(preferredTransport)) { itr.remove(); preferredUrl = url; break; |