Skip to content

Commit

Permalink
Fix variable visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Apr 25, 2024
1 parent b6962a7 commit 74bd0aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcl.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ public Integer call() throws Exception {

Logger.info("Connecting to {}...", ownerRepository);
GitHub gitHub = GitHub.connect();
GHRepository gitHubRepository;
try {
GHRepository gitHubRepository = gitHub.getRepository(ownerRepository);
gitHubRepository = gitHub.getRepository(ownerRepository);
} catch (IllegalArgumentException e) {
Logger.error("Error in repository reference {}", ownerRepository);
if (!hasRepository) {
Expand Down

0 comments on commit 74bd0aa

Please sign in to comment.