Skip to content

Commit e29a1e7

Browse files
committed
return value compile issue fixed
1 parent c108da5 commit e29a1e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/countly.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,20 +655,21 @@ log(Countly::LogLevel::DEBUG, "[Countly][sendHTTP] data: "+ data);
655655
data += "checksum256=";
656656
data += checksum_stream.str();
657657
}
658+
659+
Countly::HTTPResponse response;
660+
response.success = false;
661+
658662
#ifdef COUNTLY_USE_CUSTOM_HTTP
659663
if (http_client_function == nullptr) {
660664
log(Countly::LogLevel::FATAL, "Missing HTTP client function");
661-
return false;
665+
return response;
662666
}
663667

664668
return http_client_function(use_post, path, data);
665669
#else
666670
if (http_client_function != nullptr) {
667671
return http_client_function(use_post, path, data);
668672
}
669-
670-
Countly::HTTPResponse response;
671-
response.success = false;
672673
#ifdef _WIN32
673674
HINTERNET hSession;
674675
HINTERNET hConnect;

0 commit comments

Comments
 (0)