forked from External/mage
[minor] formatting
This commit is contained in:
parent
7014b28797
commit
8e3ebed11f
11 changed files with 118 additions and 77 deletions
|
|
@ -124,8 +124,9 @@ public class TournamentSession {
|
|||
}
|
||||
|
||||
private synchronized void setupTimeout(int seconds) {
|
||||
if (futureTimeout != null && !futureTimeout.isDone())
|
||||
if (futureTimeout != null && !futureTimeout.isDone()) {
|
||||
return;
|
||||
}
|
||||
cancelTimeout();
|
||||
if (seconds > 0) {
|
||||
futureTimeout = timeoutExecutor.schedule(
|
||||
|
|
@ -148,8 +149,9 @@ public class TournamentSession {
|
|||
|
||||
public void removeTournament() {
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user != null)
|
||||
if (user != null) {
|
||||
user.removeTournament(playerId);
|
||||
}
|
||||
}
|
||||
|
||||
private TournamentView getTournamentView() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue