summaryrefslogtreecommitdiff
path: root/frontend/src/redux
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/redux
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/redux')
-rw-r--r--frontend/src/redux/errors.js5
-rw-r--r--frontend/src/redux/players.js6
2 files changed, 3 insertions, 8 deletions
diff --git a/frontend/src/redux/errors.js b/frontend/src/redux/errors.js
index fdc2242d..ec1e30b6 100644
--- a/frontend/src/redux/errors.js
+++ b/frontend/src/redux/errors.js
@@ -19,10 +19,7 @@ const initialState = Immutable.from({
export default (state = initialState, action) => {
switch (action.type) {
case types.ERROR_RECEIVED_ON_WS:
- let error = Object.assign(
- { id: state.nextId, timestamp: new Date() },
- action.error
- );
+ let error = Object.assign({ id: state.nextId, timestamp: new Date() }, action.error);
let newState = state.set('nextId', state.nextId + 1);
newState = addErrorToHistory(newState, error);
return newState;
diff --git a/frontend/src/redux/players.js b/frontend/src/redux/players.js
index db9f1416..b11e920f 100644
--- a/frontend/src/redux/players.js
+++ b/frontend/src/redux/players.js
@@ -39,8 +39,6 @@ export default (state = initialState, action) => {
}
};
-export const getCurrentPlayer = state =>
- state.players.all && state.players.all[state.players.current];
+export const getCurrentPlayer = state => state.players.all && state.players.all[state.players.current];
export const getPlayer = (state, username) => state.players.all[username];
-export const getPlayers = (state, usernames) =>
- usernames.map(u => getPlayer(state, u));
+export const getPlayers = (state, usernames) => usernames.map(u => getPlayer(state, u));
bgstack15