Skip to content

Commit c667c42

Browse files
refactored query_target
1 parent 738828d commit c667c42

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

astroquery/esa/hubble/core.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,8 @@ def query_target(self, name, filename=None, async_job=False,
515515

516516
ra, dec = self._query_tap_target(name)
517517
coordinates = SkyCoord(ra=str(ra), dec=str(dec), unit="deg", frame='icrs')
518-
519-
if async_job:
520-
table = self.cone_search(coordinates, radius, filename=filename, output_format=output_format, async_job=True)
521-
else:
522-
table = self.cone_search(coordinates, radius, filename=filename, output_format=output_format)
518+
table = self.cone_search(coordinates, radius, filename=filename, output_format=output_format,
519+
async_job=async_job)
523520

524521
return table
525522

0 commit comments

Comments
 (0)