doma-engineering / do-auth

Fast, lean and reliable authentication server based on verifiable credentials standard
6 stars 2 forks source link

Copypasta in handle_calls in Credential.ex Gen Server #11

Open cognivore opened 2 years ago

cognivore commented 2 years ago

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?