Skip to content

Commit 3b3d568

Browse files
committed
Formatting.
1 parent 95dd89e commit 3b3d568

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cpp/JSIHelper.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,12 @@ jsi::Value createSequelQueryExecutionResult(jsi::Runtime &rt, SQLiteOPResult sta
162162
{
163163
// using value.textValue (std::string) directly allows jsi::String to use length property of std::string (allowing strings with NULLs in them like SQLite does)
164164
rowObject.setProperty(rt, columnName.c_str(), jsi::String::createFromUtf8(rt, value.textValue));
165-
} else if (value.dataType == INTEGER || value.dataType == DOUBLE)
165+
} else if (value.dataType == INTEGER)
166166
{
167167
rowObject.setProperty(rt, columnName.c_str(), jsi::Value(value.doubleOrIntValue));
168+
} else if (value.dataType == DOUBLE)
169+
{
170+
rowObject.setProperty(rt, columnName.c_str(), jsi::Value(value.doubleOrIntValue));
168171
} else if (value.dataType == ARRAY_BUFFER)
169172
{
170173
jsi::Function array_buffer_ctor = rt.global().getPropertyAsFunction(rt, "ArrayBuffer");
@@ -175,11 +178,11 @@ jsi::Value createSequelQueryExecutionResult(jsi::Runtime &rt, SQLiteOPResult sta
175178
rowObject.setProperty(rt, columnName.c_str(), o);
176179
} else
177180
{
178-
rowObject.setProperty(rt, columnName.c_str(), jsi::Value(nullptr));
181+
rowObject.setProperty(rt, columnName.c_str(), jsi::Value(nullptr));
179182
}
180183
} else
181184
{
182-
rowObject.setProperty(rt, columnName.c_str(), jsi::Value(nullptr));
185+
rowObject.setProperty(rt, columnName.c_str(), jsi::Value(nullptr));
183186
}
184187
}
185188
array.setValueAtIndex(rt, i, move(rowObject));

0 commit comments

Comments
 (0)