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

Cabol.265.refactor_sumo_find_by #266

Merged
merged 3 commits into from
Sep 7, 2016

Conversation

cabol
Copy link
Contributor

@cabol cabol commented Sep 7, 2016

[#265] Split find_by in two explicit functions: fetch and find_by.
[#241] Wrong event when persisting – Now only one event is emitted: persisted.


%% @private
get_docs() ->
{ok, Docs} = application:get_env(sumo_db, docs),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just use a default value here instead of crashing:

application:get_env(sumo_db, docs, []).

Wouldn't that work even better?

General fixes according with PR comments.
@cabol cabol force-pushed the cabol.265.refactor_sumo_find_by branch from 3964513 to d3a65cd Compare September 7, 2016 18:43
@elbrujohalcon elbrujohalcon merged commit 9c67616 into master Sep 7, 2016
@cabol cabol deleted the cabol.265.refactor_sumo_find_by branch October 8, 2016 01:27
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

Successfully merging this pull request may close these issues.

2 participants