Skip to content

Commit

Permalink
Simple refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Aug 13, 2018
1 parent 8c5dc01 commit 31e1cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ru/zendal/session/TradeSessionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private void processOfflineTrade(TradeOfflineSession session) {
* @see TradeSession
*/
private void processTrade(TradeSession session) {

//TODO simpfi
if (this.economyProcess(session)) {
economyProvider.withdraw(session.getBuyer(), session.getBetBuyer());
economyProvider.withdraw(session.getSeller(), session.getBetSeller());
Expand Down Expand Up @@ -291,7 +291,7 @@ public TradeSession getSessionByBuyer(Player buyer) throws TradeSessionManagerEx
return session;
}
}
throw new TradeSessionManagerException("trade.undefinedSessions");
throw new TradeSessionManagerException("Undefined session");
}


Expand Down

0 comments on commit 31e1cac

Please sign in to comment.