aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/model/GpgKey.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg/model/GpgKey.h')
-rw-r--r--src/gpg/model/GpgKey.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpg/model/GpgKey.h b/src/gpg/model/GpgKey.h
index 3336f39e..0ce83372 100644
--- a/src/gpg/model/GpgKey.h
+++ b/src/gpg/model/GpgKey.h
@@ -110,10 +110,9 @@ class GpgKey {
[[nodiscard]] bool HasCardKey() const {
auto subkeys = subKeys();
- return std::any_of(subkeys->begin(), subkeys->end(),
- [](const GpgSubKey& subkey) -> bool {
- if (subkey.is_cardkey()) return true;
- });
+ return std::any_of(
+ subkeys->begin(), subkeys->end(),
+ [](const GpgSubKey& subkey) -> bool { return subkey.is_cardkey(); });
}
[[nodiscard]] bool is_private_key() const { return _key_ref->secret; }