Skip to content

Commit

Permalink
Update src/elvis_style.erl
Browse files Browse the repository at this point in the history
Co-authored-by: Brujo Benavides <[email protected]>
  • Loading branch information
bormilan and elbrujohalcon authored Oct 18, 2024
1 parent 1c18d10 commit beea14b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/elvis_style.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1075,14 +1075,7 @@ is_rule_behaviour(Root, RuleConfig) ->
IsBehaviour = fun(Node) -> ktn_code:type(Node) == behaviour end,
case elvis_code:find(IsBehaviour, Root) of
[BehaviourNode] ->
case lists:member(
ktn_code:attr(value, BehaviourNode), Behaviors)
of
true ->
true;
false ->
false
end;
lists:member(ktn_code:attr(value, BehaviourNode), Behaviors)
[] ->
false
end.
Expand Down

0 comments on commit beea14b

Please sign in to comment.