Skip to content

Commit 589c578

Browse files
committed
"myself" only makes sense when there's a credential
1 parent 4016562 commit 589c578

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/kohsuke/github/GitHub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private GitHub(String apiUrl, String login, String oauthAccessToken, String pass
123123
}
124124
}
125125

126-
if (login==null)
126+
if (login==null && encodedAuthorization!=null)
127127
login = getMyself().getLogin();
128128
this.login = login;
129129
}

0 commit comments

Comments
 (0)