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

Help with code needed - Tesla adapter handle_result #69

Closed
TwistingTwists opened this issue Sep 25, 2021 · 0 comments
Closed

Help with code needed - Tesla adapter handle_result #69

TwistingTwists opened this issue Sep 25, 2021 · 0 comments

Comments

@TwistingTwists
Copy link

TwistingTwists commented Sep 25, 2021

code from repo

https://github.com/rockneurotiko/ex_gram/blob/master/lib/ex_gram/adapter/tesla.ex#L53

question

Does this function get a call ever? The function above it would always match some status. So the flow enters the function define above L53.

concept check

In my understanding of pattern matching in function arguments -> if pattern matched, all other definitions (below) current one are ignored, right?

EDIT : concept was NOT ok. when {:ok, :true} does not match, function below is called.

suggestions - what am I missing?

Resolved (see Edit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant