Fix formatting
Change-Id: Ifff22c32adb05098c458f0ddabc24e2c310c2ce3
diff --git a/tests/doctest_integration.cpp b/tests/doctest_integration.cpp
index b333b7d..4538dde 100644
--- a/tests/doctest_integration.cpp
+++ b/tests/doctest_integration.cpp
@@ -2,23 +2,19 @@
#include <doctest/doctest.h>
#include <trompeloeil.hpp>
-namespace trompeloeil
-{
- template <>
- void reporter<specialized>::send(
+namespace trompeloeil {
+template <>
+void reporter<specialized>::send(
severity s,
const char* file,
unsigned long line,
const char* msg)
- {
+{
auto f = line ? file : "[file/line unavailable]";
- if (s == severity::fatal)
- {
- ADD_FAIL_AT(f, line, msg);
+ if (s == severity::fatal) {
+ ADD_FAIL_AT(f, line, msg);
+ } else {
+ ADD_FAIL_CHECK_AT(f, line, msg);
}
- else
- {
- ADD_FAIL_CHECK_AT(f, line, msg);
- }
- }
+}
}