Skip to content

Copypasta in handle_calls in Credential.ex Gen Server #11

@cognivore

Description

@cognivore

Why?

:present_credential and :mk_credential are the same function, bar the "new_x"and "fetch_x" named anonymous functions within the implementation bodies.

It's better for maintainability to follow DRY.

What?

  • Unify those into one function with a wrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions