Ensure return value of function in and_then is either {:ok, ...} or {:error, ...}
Open
enhancement
- Dominant language
- Elixir
- Stars
- 6
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
There is a need to implement a check to ensure that the return value of the function used in and_then matches the expected pattern of either {:ok, ...} or {:error, ...}. This is crucial for maintaining consistency in our error handling and ensuring that our functions adhere to the expected return conventions. This check should help prevent unexpected behaviors in the pipeline by enforcing a standard pattern for success and error states.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.