[Python-Experimental]: Remove redundant else statement (#4324)

* [Python-Experimental]: Remove redundant else statement

* Run petstore
This commit is contained in:
Arun 2019-11-04 14:02:53 +05:30 committed by William Cheng
parent b4c72427fe
commit e3bfa282e5
3 changed files with 27 additions and 25 deletions

View File

@ -346,18 +346,19 @@ class ApiClient(object):
_return_http_data_only, collection_formats, _return_http_data_only, collection_formats,
_preload_content, _request_timeout, _host, _preload_content, _request_timeout, _host,
_check_type) _check_type)
else:
thread = self.pool.apply_async(self.__call_api, (resource_path, return self.pool.apply_async(self.__call_api, (resource_path,
method, path_params, query_params, method, path_params,
query_params,
header_params, body, header_params, body,
post_params, files, post_params, files,
response_type, auth_settings, response_type,
auth_settings,
_return_http_data_only, _return_http_data_only,
collection_formats, collection_formats,
_preload_content, _preload_content,
_request_timeout, _request_timeout,
_host, _check_type)) _host, _check_type))
return thread
def request(self, method, url, query_params=None, headers=None, def request(self, method, url, query_params=None, headers=None,
post_params=None, body=None, _preload_content=True, post_params=None, body=None, _preload_content=True,

View File

@ -1 +1 @@
4.2.0-SNAPSHOT 4.2.1-SNAPSHOT

View File

@ -339,18 +339,19 @@ class ApiClient(object):
_return_http_data_only, collection_formats, _return_http_data_only, collection_formats,
_preload_content, _request_timeout, _host, _preload_content, _request_timeout, _host,
_check_type) _check_type)
else:
thread = self.pool.apply_async(self.__call_api, (resource_path, return self.pool.apply_async(self.__call_api, (resource_path,
method, path_params, query_params, method, path_params,
query_params,
header_params, body, header_params, body,
post_params, files, post_params, files,
response_type, auth_settings, response_type,
auth_settings,
_return_http_data_only, _return_http_data_only,
collection_formats, collection_formats,
_preload_content, _preload_content,
_request_timeout, _request_timeout,
_host, _check_type)) _host, _check_type))
return thread
def request(self, method, url, query_params=None, headers=None, def request(self, method, url, query_params=None, headers=None,
post_params=None, body=None, _preload_content=True, post_params=None, body=None, _preload_content=True,