Skip to content

Commit

Permalink
Add else with braces for not straightforward code.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 29, 2024
1 parent 52af37a commit 09522a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ImportXlsx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 09522a3

Please sign in to comment.