Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible refactor #74

Open
kimond opened this issue Oct 16, 2017 · 0 comments
Open

Possible refactor #74

kimond opened this issue Oct 16, 2017 · 0 comments
Assignees

Comments

@kimond
Copy link
Collaborator

kimond commented Oct 16, 2017

comiko/lib/app_state.dart

Lines 200 to 203 in bf2e489

AppState reducer<T extends IsAction>(AppState state, T action) {
state = state.clone();
state = action.handle(state);
return state;

Those three lines could be refactored in one line:

return action.handle(state.clone());
@kimond kimond changed the title Possible refactor #2 Possible refactor Oct 16, 2017
@kimond kimond self-assigned this Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant