CPPCHECK: There is no such thing as 2

sql-rework
Tomasz Golinski 2020-02-11 17:34:52 +01:00
rodzic 2ab560f172
commit 17e8a93b5b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -169,7 +169,7 @@ bool OCdb::update_cache(const json& j) {
fields["owner"] = j["data"]["owner"]["uuid"].get<std::string>();
if (fields.empty() && fields2.empty())
return 2;
return 1;
std::string sql = "INSERT INTO caches (code,";
for (auto& i : fields)
@ -230,7 +230,7 @@ bool OCdb::update_log(const json& j) {
fields["type"] = j["data"]["type"].get<std::string>();
if (fields.empty())
return 2;
return 1;
std::string sql = "INSERT INTO logs (uuid,";
for (auto& i : fields)