From f5cf83e4b3fdf1e9ae82b00f39e45e189809c419 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 15 Dec 2023 17:04:59 +0800 Subject: fix: slove some issues on memory and intilizations --- src/core/function/gpg/GpgKeyManager.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/core/function/gpg/GpgKeyManager.cpp') diff --git a/src/core/function/gpg/GpgKeyManager.cpp b/src/core/function/gpg/GpgKeyManager.cpp index 4a67a3f4..7afc356a 100644 --- a/src/core/function/gpg/GpgKeyManager.cpp +++ b/src/core/function/gpg/GpgKeyManager.cpp @@ -184,11 +184,6 @@ auto GpgFrontend::GpgKeyManager::SetOwnerTrustLevel(const GpgKey& key, auto err = gpgme_op_interact( ctx_.DefaultContext(), static_cast(key), 0, GpgKeyManager::interactor_cb_fnc, (void*)&handel_struct, data_out); - if (err != GPG_ERR_NO_ERROR) { - SPDLOG_ERROR("fail to set owner trust level {} to key {}, err: {}", - trust_level, key.GetId(), gpgme_strerror(err)); - } - return CheckGpgError(err) == GPG_ERR_NO_ERROR && handel_struct.Success(); } -- cgit v1.2.3