mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
if the user name is available, pass that in and save a lookup
This commit is contained in:
@@ -116,7 +116,7 @@ public class GitHub {
|
||||
}
|
||||
String oauth = props.getProperty("oauth");
|
||||
if (oauth!=null)
|
||||
return new GitHub(GITHUB_URL,null, oauth,null);
|
||||
return new GitHub(GITHUB_URL,props.getProperty("login"), oauth,null);
|
||||
else
|
||||
return new GitHub(props.getProperty("login"),props.getProperty("token"),props.getProperty("password"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user