From b1fd78ebe32ee66e1761789269b5d4d4df1a2d86 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 20 Aug 2024 09:30:41 -0500 Subject: [PATCH] updated build system --- .../src/providers/encrypt/encrypt_provider.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp b/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp index 937e72f0..a3cee94d 100644 --- a/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp +++ b/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp @@ -181,13 +181,10 @@ auto encrypt_provider::do_fs_operation( callback) const -> api_error { auto cfg = config_.get_encrypt_config(); std::string source_path{api_path}; - if (api_path != "/") { - auto res = - utils::encryption::decrypt_file_path(cfg.encryption_token, source_path); - if (res != api_error::success) { - return directory ? api_error::directory_not_found - : api_error::item_not_found; - } + if (api_path != "/" && not utils::encryption::decrypt_file_path( + cfg.encryption_token, source_path)) { + return directory ? api_error::directory_not_found + : api_error::item_not_found; } source_path = utils::path::combine(cfg.path, {source_path});