diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-10-06 20:56:43 -0700 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-10-06 20:56:43 -0700 |
commit | dd9bb253c3a6be29dd2749ca34e4ec7eb6b593bb (patch) | |
tree | 4f0ce8945342d35a1149c6c9e0a31b9a97d0e9c3 /src/keystore.cpp | |
parent | 208fda69b3989c6f8a2c5bd9ae6558484a377e2a (diff) |
Fix code style in keystore.cpp/crypter.cpp
Diffstat (limited to 'src/keystore.cpp')
-rw-r--r-- | src/keystore.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index d19e9a83d8..e2ce474298 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -54,14 +54,11 @@ std::set<CKeyID> CBasicKeyStore::GetKeys() const bool CBasicKeyStore::GetKey(const CKeyID &address, CKey &keyOut) const { - { - LOCK(cs_KeyStore); - KeyMap::const_iterator mi = mapKeys.find(address); - if (mi != mapKeys.end()) - { - keyOut = mi->second; - return true; - } + LOCK(cs_KeyStore); + KeyMap::const_iterator mi = mapKeys.find(address); + if (mi != mapKeys.end()) { + keyOut = mi->second; + return true; } return false; } |