use empty as we always init the var

This commit is contained in:
DarthArgus
2016-09-26 06:24:21 +00:00
parent 17265362de
commit 09b288a36e
+1 -1
View File
@@ -64,7 +64,7 @@ bool webAPI::submit(const int &reqType, const int &getPost, const int &respType)
{
if (reqType == DTYPE::JSON) // json request
{
if (!this->requestData.is_null())
if (!this->requestData.empty())
{
// serialize our data into sRequest
this->sRequest = this->requestData.dump();