From c663b5d5fcc3ed9f5af8d6e5e7fdf1e99f4a2c58 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 7 Jan 2020 22:06:31 -0500 Subject: Add braces around single line statements * Ran clang-tidy with "readability-braces-around-statements" to find missing braces around statements. --- tests/TestYkChallengeResponseKey.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/TestYkChallengeResponseKey.cpp') diff --git a/tests/TestYkChallengeResponseKey.cpp b/tests/TestYkChallengeResponseKey.cpp index 0d6f9b5c3..a4dd76270 100644 --- a/tests/TestYkChallengeResponseKey.cpp +++ b/tests/TestYkChallengeResponseKey.cpp @@ -84,12 +84,14 @@ void TestYubiKeyChalResp::ykDetected(int slot, bool blocking) { Q_UNUSED(blocking); - if (slot > 0) + if (slot > 0) { m_detected++; + } /* Key used for later testing */ - if (!m_key) + if (!m_key) { m_key.reset(new YkChallengeResponseKey(slot, blocking)); + } } void TestYubiKeyChalResp::deinit() -- cgit v1.2.3