Skip to content

Possible refactor #74

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions