Skip to content

Commit c69f1c7

Browse files
committed
resolved lint errors
1 parent 76ae664 commit c69f1c7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/reactor.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,17 @@ class Reactor {
247247

248248
// let each core handle the message
249249
this.__stores.forEach((store, id) => {
250-
var currState = state.get(id), newState, dispatchError
251-
250+
var currState = state.get(id)
251+
var newState
252+
var dispatchError
253+
252254
try {
253255
newState = store.handle(currState, actionType, payload)
254256
} catch(e) {
255257
dispatchError = e
256258
}
257-
258-
if (this.debug && (newState === undefined || dispatchError)) {
259+
260+
if (this.debug && (newState === undefined || dispatchError)) {
259261
var error = dispatchError || 'Store handler must return a value, did you forget a return statement'
260262
logging.dispatchError(error)
261263
throw new Error(error)

0 commit comments

Comments
 (0)