diff options
author | Saturneric <[email protected]> | 2022-01-04 17:07:35 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-04 17:07:35 +0000 |
commit | 7b90fdce914df633754a5c5fb36e47efa7889241 (patch) | |
tree | 37a16b0dc9ce5cf246a0f036b56ed2e31ee35807 /src/gpg/GpgContext.cpp | |
parent | <chore>(): install TRANSLATORS file in deb mode. (diff) | |
download | GpgFrontend-7b90fdce914df633754a5c5fb36e47efa7889241.tar.gz GpgFrontend-7b90fdce914df633754a5c5fb36e47efa7889241.zip |
<fixed>(core): fixed codacy problem.
1. Consecutive return, break, continue, goto or throw statements are unnecessary.
2. Variable 'current' is assigned a value that is never used.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/GpgContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp index c885ac94..e3f10056 100644 --- a/src/gpg/GpgContext.cpp +++ b/src/gpg/GpgContext.cpp @@ -209,13 +209,12 @@ gpgme_error_t GpgContext::test_passphrase_cb(void *opaque, const char *uid_hint, } while (res > 0 && off != pass_len); return off == pass_len ? 0 : gpgme_error_from_errno(errno); - return 0; } gpgme_error_t GpgContext::test_status_cb(void *hook, const char *keyword, const char *args) { LOG(INFO) << "keyword" << keyword; - return 0; + return GPG_ERR_NO_ERROR; } } // namespace GpgFrontend
\ No newline at end of file |