In fact there's no point in looking up the 'token' property since API token is no longer supported by GitHub

This commit is contained in:
Kohsuke Kawaguchi
2013-04-23 10:05:45 -07:00
parent 60175ebfad
commit 5e3d3dd023

View File

@@ -114,11 +114,7 @@ public class GitHub {
} finally {
IOUtils.closeQuietly(in);
}
String oauth = props.getProperty("oauth");
if (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"));
return new GitHub(GITHUB_URL,props.getProperty("login"), props.getProperty("oauth"),props.getProperty("password"));
}
/**