Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e3d3dd

Browse files
committed
In fact there's no point in looking up the 'token' property since API token is no longer supported by GitHub
1 parent 60175eb commit 5e3d3dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ public static GitHub connect() throws IOException {
114114
} finally {
115115
IOUtils.closeQuietly(in);
116116
}
117-
String oauth = props.getProperty("oauth");
118-
if (oauth!=null)
119-
return new GitHub(GITHUB_URL,props.getProperty("login"), oauth,null);
120-
else
121-
return new GitHub(props.getProperty("login"),props.getProperty("token"),props.getProperty("password"));
117+
return new GitHub(GITHUB_URL,props.getProperty("login"), props.getProperty("oauth"),props.getProperty("password"));
122118
}
123119

124120
/**

0 commit comments

Comments
 (0)