Skip to content

Commit

Permalink
Fixed Coding Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Padmanabhan Manoharan authored and Padmanabhan Manoharan committed Oct 3, 2019
1 parent f43a2e0 commit 84ffde8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ public Page<GlobalLeaderboardEntry> getGlobalLeaderboard(@Nullable Integer page,
}

public GlobalLeaderboardEntry getGlobalEntry(String playerId) {
if (StringUtils.isNumeric(playerId)) {
return globalLeaderboardRepository.findByPlayerId(Integer.parseInt(playerId));
}
else {
if (!StringUtils.isNumeric(playerId)) {
throw ApiException.of(ErrorCode.PLAYER_ID_MUST_BE_NUMBER);
}
return globalLeaderboardRepository.findByPlayerId(Integer.parseInt(playerId));
}

public Ladder1v1LeaderboardEntry getLadder1v1Entry(int playerId) {
Expand Down

0 comments on commit 84ffde8

Please sign in to comment.