Skip to content

Commit 137572e

Browse files
committed
change spaces
1 parent 44f6cc5 commit 137572e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/net/discordjug/javabot/systems/qotw/QOTWPointsService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ public int getQOTWRank(long userId, List<QOTWAccount> accounts) {
7474
int currentRank = 1;
7575
for (int i = 0; i < accounts.size(); i++) {
7676
QOTWAccount account = accounts.get(i);
77-
if(account.getPoints() != lastScore) {
77+
if (account.getPoints() != lastScore) {
7878
currentRank = i + 1;
7979
lastScore = account.getPoints();
8080
}
81-
if(account.getUserId()==userId) {
81+
if (account.getUserId() == userId) {
8282
return currentRank;
8383
}
8484
}

src/test/java/net/discordjug/javabot/systems/qotw/QOTWPointsServiceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void testNormalQOTWRank() {
2525
assertEquals(2, pointsService.getQOTWRank(2, List.of(
2626
createAccount(1, 2),
2727
createAccount(2, 1)
28-
)));
28+
)));
2929
}
3030

3131
@Test
@@ -34,7 +34,7 @@ void testQOTWRankWithTiesBefore() {
3434
createAccount(2, 2),
3535
createAccount(3, 2),
3636
createAccount(1, 1)
37-
)));
37+
)));
3838
}
3939

4040
@Test
@@ -43,12 +43,12 @@ void testQOTWRankWithTiesAtSamePosition() {
4343
createAccount(2, 2),
4444
createAccount(3, 1),
4545
createAccount(1, 1)
46-
)));
46+
)));
4747
assertEquals(2, pointsService.getQOTWRank(1, List.of(
4848
createAccount(2, 2),
4949
createAccount(1, 1),
5050
createAccount(3, 1)
51-
)));
51+
)));
5252
}
5353

5454
private QOTWAccount createAccount(long userId, int score) {

0 commit comments

Comments
 (0)