From 8765c8d5bdb24c7c4f4552a68ef257aa972496f4 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 4 Oct 2018 14:01:32 +0200 Subject: [PATCH] one if less reduces complexity! --- Adapter.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Adapter.cc b/Adapter.cc index 0eeb386..2acb0b8 100644 --- a/Adapter.cc +++ b/Adapter.cc @@ -72,9 +72,7 @@ namespace pEp { status = PEP_ILLEGAL_VALUE; } - if (status) - throw_status(status); - + throw_status(status); return _session; }