From 3002929d452c725a4f746a9be252d434b50e39b3 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 01:02:57 +0100 Subject: [PATCH] passphrase_cache: coding conventions (readability) --- src/passphrase_cache.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/passphrase_cache.hxx b/src/passphrase_cache.hxx index 2e33323..1f993f7 100644 --- a/src/passphrase_cache.hxx +++ b/src/passphrase_cache.hxx @@ -14,8 +14,9 @@ namespace pEp { for_each_passphrase([&](std::string passphrase) { status = ::config_passphrase(session, passphrase.c_str()); - if (status) + if (status) { return true; + } status = f(session, a...); return status != PEP_PASSPHRASE_REQUIRED && status != PEP_WRONG_PASSPHRASE; @@ -23,6 +24,6 @@ namespace pEp { return status; } -}; // namespace pEp +} // namespace pEp #endif // LIBPEPADAPTER_PASSPHRASE_CACHE_HXX