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 7536eee

Browse filesBrowse files
committed
V2 code no longer needed
1 parent d940d43 commit 7536eee
Copy full SHA for 7536eee

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHCommitPointer.java
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
public class GHCommitPointer {
3232
private String ref, sha, label;
3333
private GHUser user;
34-
private GHRepository repository/*V2*/,repo/*V3*/;
34+
private GHRepository repo;
3535

3636
/**
3737
* This points to the user who owns
38-
* the {@link #repository}.
38+
* the {@link #getRepository()}.
3939
*/
4040
public GHUser getUser() {
4141
return user;
@@ -45,7 +45,7 @@ public GHUser getUser() {
4545
* The repository that contains the commit.
4646
*/
4747
public GHRepository getRepository() {
48-
return repo!=null ? repo : repository;
48+
return repo;
4949
}
5050

5151
/**
@@ -72,6 +72,5 @@ public String getLabel() {
7272
void wrapUp(GitHub root) {
7373
if (user!=null) user.root = root;
7474
if (repo!=null) repo.wrap(root);
75-
if (repository!=null) repository.wrap(root);
7675
}
7776
}

0 commit comments

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