summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/lobby.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-05-28 16:58:54 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-05-28 16:58:54 +0200
commitc3e86bed99863e38e6bbc5c42c34f8b8322228de (patch)
tree738e42b6158a0c80ceef989f6cf2a4ab4c0f52e6 /frontend/src/sagas/lobby.js
parentRemove unnecessary webjars (diff)
downloadseven-wonders-c3e86bed99863e38e6bbc5c42c34f8b8322228de.tar.gz
seven-wonders-c3e86bed99863e38e6bbc5c42c34f8b8322228de.tar.bz2
seven-wonders-c3e86bed99863e38e6bbc5c42c34f8b8322228de.zip
Change print width to 120, again
Diffstat (limited to 'frontend/src/sagas/lobby.js')
-rw-r--r--frontend/src/sagas/lobby.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/frontend/src/sagas/lobby.js b/frontend/src/sagas/lobby.js
index 7b52ad29..d11511e8 100644
--- a/frontend/src/sagas/lobby.js
+++ b/frontend/src/sagas/lobby.js
@@ -15,11 +15,7 @@ function getCurrentGameId() {
function* watchLobbyUpdates({ socket }) {
const currentGameId = getCurrentGameId();
- const lobbyUpdatesChannel = yield call(
- createSubscriptionChannel,
- socket,
- `/topic/lobby/${currentGameId}/updated`
- );
+ const lobbyUpdatesChannel = yield call(createSubscriptionChannel, socket, `/topic/lobby/${currentGameId}/updated`);
try {
while (true) {
const lobby = yield take(lobbyUpdatesChannel);
@@ -34,11 +30,7 @@ function* watchLobbyUpdates({ socket }) {
function* watchGameStart({ socket }) {
const currentGameId = getCurrentGameId();
- const gameStartedChannel = yield call(
- createSubscriptionChannel,
- socket,
- `/topic/lobby/${currentGameId}/started`
- );
+ const gameStartedChannel = yield call(createSubscriptionChannel, socket, `/topic/lobby/${currentGameId}/started`);
try {
yield take(gameStartedChannel);
yield put(gameActions.enterGame());
bgstack15