-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improve maintainability #70
Improve maintainability #70
Conversation
iex> url = "https://api.ibanity.com/customer/synchronizations" | ||
...> Ibanity.IdReplacer.replace_all(url, &String.replace("*", String.length(&1))) | ||
"https://api.ibanity.com/customer/synchronizations" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what this was supposed to test, but I can see that it wouldn't work because String.replace/2
isn't a function...
Since this is in internal module, and the only way it is used is IdReplacer.replace_all(&Recase.to_snake/1)
, I agree with removing the faulty test case. 👍
@edouardmenayde thanks for the PR, all the warnings and not canonically formatted code has been bugging me too 👍 Question before merging: are you planning to get rid of the duplicate |
I am unsure on why it was written this way, so I didn't want to touch it. |
Could this be merged and a new release be published ? |
I'll look into a new release, but not sure it will be up today. |
Fixes some problems I encountered while contributing on my last PR :
mix format
was not up-to-date, I executed it and added a check in the CITo be reviewed commit by commit for easier reading