diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2017-05-20 15:14:13 +0200 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2017-05-20 15:14:13 +0200 |
commit | 240246ea132cc736c6eaa70ed79f2ec78d1d4636 (patch) | |
tree | a45a5c81de9f650fcd18190d90049f67c0f63b97 /frontend/src/sagas.js | |
parent | Upgrade react-scripts to 1.0.1 (diff) | |
download | seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.tar.gz seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.tar.bz2 seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.zip |
Add prettier and format js files
Diffstat (limited to 'frontend/src/sagas.js')
-rw-r--r-- | frontend/src/sagas.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js index c5166cd5..ff66453e 100644 --- a/frontend/src/sagas.js +++ b/frontend/src/sagas.js @@ -1,18 +1,18 @@ -import { router } from 'redux-saga-router' -import { call, fork } from 'redux-saga/effects' +import { router } from "redux-saga-router"; +import { call, fork } from "redux-saga/effects"; -import { makeSagaRoutes } from './routes' -import { createWsConnection } from './utils/websocket' -import errorHandlingSaga from './sagas/errors' +import { makeSagaRoutes } from "./routes"; +import { createWsConnection } from "./utils/websocket"; +import errorHandlingSaga from "./sagas/errors"; -export default function *rootSaga(history) { - let wsConnection +export default function* rootSaga(history) { + let wsConnection; try { - wsConnection = yield call(createWsConnection) + wsConnection = yield call(createWsConnection); } catch (error) { - console.error('Could not connect to socket') - return + console.error("Could not connect to socket"); + return; } - yield fork(errorHandlingSaga, wsConnection) - yield* router(history, makeSagaRoutes(wsConnection)) + yield fork(errorHandlingSaga, wsConnection); + yield* router(history, makeSagaRoutes(wsConnection)); } |