From 09522a3201d0ec807c3b71c5330091029fcb4f11 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Sun, 29 Dec 2024 15:31:56 +0100 Subject: [PATCH] Add else with braces for not straightforward code. --- src/ImportXlsx.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ImportXlsx.cpp b/src/ImportXlsx.cpp index 280ae2f..026eba2 100644 --- a/src/ImportXlsx.cpp +++ b/src/ImportXlsx.cpp @@ -424,8 +424,11 @@ ColumnType ImportXlsx::recognizeColumnType( { if (currentType == ColumnType::UNKNOWN) detectedType = ColumnType::DATE; - else if (currentType != ColumnType::DATE) - detectedType = ColumnType::STRING; + else + { + if (currentType != ColumnType::DATE) + detectedType = ColumnType::STRING; + } } else {