diff options
author | Anders Svensson <anders@erlang.org> | 2015-06-17 13:31:48 +0200 |
---|---|---|
committer | Anders Svensson <anders@erlang.org> | 2015-06-17 21:15:31 +0200 |
commit | 552962544c812caa1005094f3a0a00e05556565b (patch) | |
tree | 79589b8e1bd3b9a3e2364455a4db9ee1fcdfbf73 | |
parent | 596848c0b7b752ebf1ed31873de39ad729dc54b4 (diff) | |
download | erlang-552962544c812caa1005094f3a0a00e05556565b.tar.gz |
Simplify logic
Testing is_failed() is unnecessary since put/2 a second time will
return a previously put 'true'.
-rw-r--r-- | lib/diameter/include/diameter_gen.hrl | 2 |
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(). |