From beea14bf4f6be9c6d8c867a6edf4ff86c381fbfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B3r=20Mil=C3=A1n?= <71042542+bormilan@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:17:49 +0200 Subject: [PATCH] Update src/elvis_style.erl Co-authored-by: Brujo Benavides --- src/elvis_style.erl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/elvis_style.erl b/src/elvis_style.erl index d7eab15..c154e8c 100644 --- a/src/elvis_style.erl +++ b/src/elvis_style.erl @@ -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.