Skip to content

Instantly share code, notes, and snippets.

@scrogson
Created March 18, 2014 04:28
Show Gist options
  • Save scrogson/9613575 to your computer and use it in GitHub Desktop.
Save scrogson/9613575 to your computer and use it in GitHub Desktop.
check_member_option(Host, Element, Option) ->
%% Won't this always evaluate to true?
true = case try_get_option(Host, Option, all) of
all -> true;
AllowedValues -> lists:member(Element, AllowedValues)
end;
@scrogson
Copy link
Author

To answer my own question. It would result in:
** exception error: no match of right hand side value false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment