Skip to content

Commit

Permalink
fix some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
massemanet authored and eproxus committed Jul 11, 2018
1 parent 1874c6f commit a0a7ae8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
.\#*
\#*
.rebar3
_*
.eunit
Expand Down
10 changes: 5 additions & 5 deletions src/meck_code_gen.erl
Expand Up @@ -61,22 +61,22 @@ get_current_call() ->

attribute({Key, _Value}, Attrs)
when Key =:= vsn;
Key =:= deprecated;
Key =:= optional_callbacks;
Key =:= deprecated;
Key =:= optional_callbacks;
Key =:= dialyzer ->
Attrs;
attribute({Key, Value}, Attrs)
when (Key =:= behaviour orelse Key =:= behavior)
andalso is_list(Value) ->
lists:foldl(fun(Behavior, Acc) -> [?attribute(Key, Behavior) | Acc] end,
Attrs, Value);
Attrs, Value);
attribute({Key, Value}, Attrs) ->
[?attribute(Key, Value) | Attrs].

attributes(Mod) ->
try
lists:foldl(fun attribute/2, [],
proplists:get_value(attributes, Mod:module_info(), []))
lists:foldl(fun attribute/2, [],
proplists:get_value(attributes, Mod:module_info(), []))
catch
error:undef -> []
end.
Expand Down

0 comments on commit a0a7ae8

Please sign in to comment.