From 552962544c812caa1005094f3a0a00e05556565b Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Wed, 17 Jun 2015 13:31:48 +0200 Subject: Simplify logic Testing is_failed() is unnecessary since put/2 a second time will return a previously put 'true'. --- lib/diameter/include/diameter_gen.hrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/diameter/include/diameter_gen.hrl b/lib/diameter/include/diameter_gen.hrl index 6e2af0f8f7..81e093b91a 100644 --- a/lib/diameter/include/diameter_gen.hrl +++ b/lib/diameter/include/diameter_gen.hrl @@ -420,7 +420,7 @@ is_strict() -> %% Strictly, this doesn't need to be the case. relax('Failed-AVP') -> - is_failed() orelse putr(?FAILED_KEY, true); + putr(?FAILED_KEY, true); relax(_) -> is_failed(). -- cgit v1.2.3