[Scummvm-git-logs] scummvm master -> 7533375b554a7e292e723d7096fa0c26c86a32c0

sev- sev at scummvm.org
Fri Oct 25 00:55:59 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7533375b55 NETWORKING: Remove unnesessary check


Commit: 7533375b554a7e292e723d7096fa0c26c86a32c0
    https://github.com/scummvm/scummvm/commit/7533375b554a7e292e723d7096fa0c26c86a32c0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-10-25T00:55:51+02:00

Commit Message:
NETWORKING: Remove unnesessary check

Changed paths:
    backends/networking/curl/postrequest.cpp


diff --git a/backends/networking/curl/postrequest.cpp b/backends/networking/curl/postrequest.cpp
index 5e0bc1a..54a8fba 100644
--- a/backends/networking/curl/postrequest.cpp
+++ b/backends/networking/curl/postrequest.cpp
@@ -103,13 +103,6 @@ void PostRequest::responseCallback(Networking::JsonResponse response) {
 		return;
 	}
 
-	if (!json->isObject()) {
-		error.response = "Passed JSON is not an object!";
-		finishError(error);
-		delete json;
-		return;
-	}
-
 	finishSuccess();
 
 	if (_jsonCallback)





More information about the Scummvm-git-logs mailing list