Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 15d4277

Browse files
authored
Use type variable destructured from action object in 0.1extra-4.js (#130)
Very small "improvement" here, but I thought id't be best if the destructured `type` variable was used for consistency.
1 parent 572f686 commit 15d4277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/final/01.extra-4.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function countReducer(state, action) {
1414
}
1515
}
1616
default: {
17-
throw new Error(`Unsupported action type: ${action.type}`)
17+
throw new Error(`Unsupported action type: ${type}`)
1818
}
1919
}
2020
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /