aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-06-17 13:31:48 +0200
committerAnders Svensson <[email protected]>2015-06-17 21:15:31 +0200
commit552962544c812caa1005094f3a0a00e05556565b (patch)
tree79589b8e1bd3b9a3e2364455a4db9ee1fcdfbf73 /lib/diameter
parent596848c0b7b752ebf1ed31873de39ad729dc54b4 (diff)
downloadotp-552962544c812caa1005094f3a0a00e05556565b.tar.gz
otp-552962544c812caa1005094f3a0a00e05556565b.tar.bz2
otp-552962544c812caa1005094f3a0a00e05556565b.zip
Simplify logic
Testing is_failed() is unnecessary since put/2 a second time will return a previously put 'true'.
Diffstat (limited to 'lib/diameter')
-rw-r--r--lib/diameter/include/diameter_gen.hrl2
1 files changed, 1 insertions, 1 deletions
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().