Skip to content

Commit 8bb494a

Browse files
jaymedinakeflavich
andauthored
simplify use_json variable call
Co-authored-by: Adam Ginsburg <[email protected]>
1 parent f9cb352 commit 8bb494a

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
@@ -163,7 +163,7 @@ def query_region_async(self, coordinates, *, radius=0.2*u.deg, catalog="Hsc",
163163
params[prop] = value
164164

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

168168
return self._current_connection.service_request_async(service, params, pagesize=pagesize, page=page,
169169
use_json=use_json)

0 commit comments

Comments
 (0)