Skip to content

Commit

Permalink
checkstyle warning remove
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Jun 16, 2024
1 parent f8bad6d commit 4be48a8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ public GithubRepository(final OkHttpClient httpClient) {
.build();
logger.debug("Github rate limit: {}", github.getRateLimit());
} catch (HttpException e) {
if (e.getResponseCode() == -1) { // NOPMD
// no internet connection, do nothing
} else {
if (e.getResponseCode() != -1) {
// if -1, no internet connection, do nothing, otherwise print stacktrace
e.printStackTrace();
}
} catch (IOException e) {

e.printStackTrace();
}
}
Expand Down

0 comments on commit 4be48a8

Please sign in to comment.