github-code-scanning[bot] commented on code in PR #14742:
URL: https://github.com/apache/druid/pull/14742#discussion_r1286219620


##########
examples/quickstart/jupyter-notebooks/druidapi/druidapi/tasks.py:
##########
@@ -129,7 +130,20 @@
         ---------
         `GET /druid/indexer/v1/task/{taskId}/reports`
         '''
-        return self.client.get_json(REQ_TASK_REPORTS, args=[task_id])
+        if require_ok:
+            return self.client.get_json(REQ_TASK_REPORTS, args=[task_id])
+        else:
+            resp = self.client.get(REQ_TASK_REPORTS, args=[task_id], 
require_ok=require_ok)
+            code = resp.status_code

Review Comment:
   ## Unused local variable
   
   Variable code is not used.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/5414)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to