Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e54e300

Browse filesBrowse files
committed
simplify
1 parent be8cf60 commit e54e300
Copy full SHA for e54e300

File tree

Expand file treeCollapse file tree

2 files changed

+2
-13
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-13
lines changed

‎pom.xml

Copy file name to clipboardExpand all lines: pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.321</version>
5+
<version>1.322</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

‎src/main/java/org/kohsuke/github/GHPerson.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHPerson.java
+1-12Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,7 @@ protected synchronized void populate() throws IOException {
5555
if (isOffline()) {
5656
return; // cannot populate, will have to live with what we have
5757
}
58-
String path = getUrlPath();
59-
if (path != null) {
60-
root().createRequest().withUrlPath(path).fetchInto(this);
61-
}
62-
}
63-
64-
private String getUrlPath() {
65-
URL url = getUrl(); // Get the full URL
66-
if (url != null) {
67-
return url.getPath(); // Extract only the relative path
68-
}
69-
return null;
58+
root().createRequest().withUrlPath("/users/" + login).fetchInto(this);
7059
}
7160

7261
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.