Skip to content

Possible refactor #74

@kimond

Description

@kimond

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());

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions