commit | 3b772d0afc7dd3e7fcae4f256f7728e9975fb412 | [log] [tgz] |
---|---|---|
author | Adam Lindberg <hello@alind.io> | Wed Jun 28 11:21:22 2017 +0200 |
committer | Adam Lindberg <hello@alind.io> | Wed Jun 28 11:21:22 2017 +0200 |
tree | 98debac6e2a436674d03bbb1b00b9ed4f733e825 | |
parent | a32733d5e8326f974a976be406cd385d1c7cec93 [diff] |
Remove dialyzer attributes when creating mock
diff --git a/src/meck_code_gen.erl b/src/meck_code_gen.erl index e6bb9f3..b7ef322 100644 --- a/src/meck_code_gen.erl +++ b/src/meck_code_gen.erl
@@ -62,7 +62,8 @@ attribute({Key, _Value}, Attrs) when Key =:= vsn; Key =:= deprecated; - Key =:= optional_callbacks -> + Key =:= optional_callbacks; + Key =:= dialyzer -> Attrs; attribute({Key, Value}, Attrs) when (Key =:= behaviour orelse Key =:= behavior)