Skip to content

Commit 2033476

Browse files
committed
use_json variable simplified
1 parent c35da32 commit 2033476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/mast/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def query_criteria_async(self, catalog, *, pagesize=None, page=None, **criteria)
318318
params["filters"] = filters
319319

320320
# Parameters will be passed as JSON objects only when accessing the PANSTARRS API
321-
use_json = True if catalog.lower() == 'panstarrs' else False
321+
use_json = catalog.lower() == 'panstarrs'
322322

323323
return self._current_connection.service_request_async(service, params, pagesize=pagesize, page=page,
324324
use_json=use_json)

0 commit comments

Comments
 (0)