Response with error for sticker set,inc,dec and add missing asserts
This commit is contained in:
@@ -283,11 +283,9 @@ StickerDatabase::StoreValue(const char *type, const char *uri,
|
||||
assert(type != nullptr);
|
||||
assert(uri != nullptr);
|
||||
assert(name != nullptr);
|
||||
assert(*name != 0);
|
||||
assert(value != nullptr);
|
||||
|
||||
if (StringIsEmpty(name))
|
||||
return;
|
||||
|
||||
if (!UpdateValue(type, uri, name, value))
|
||||
InsertValue(type, uri, name, value);
|
||||
}
|
||||
@@ -367,6 +365,7 @@ StickerDatabase::DeleteValue(const char *type, const char *uri,
|
||||
|
||||
assert(type != nullptr);
|
||||
assert(uri != nullptr);
|
||||
assert(name != nullptr);
|
||||
|
||||
BindAll(s, type, uri, name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user