Skip to content

Commit 0d472bd

Browse files
remove un-necessary elifs
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent cb61181 commit 0d472bd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/databricks/sql/backend/utils/http_client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ def _get_call(self, method: str) -> Callable:
9292
method = method.upper()
9393
if method == "GET":
9494
return self.session.get
95-
elif method == "POST":
95+
if method == "POST":
9696
return self.session.post
97-
elif method == "DELETE":
97+
if method == "DELETE":
9898
return self.session.delete
99-
else:
100-
raise ValueError(f"Unsupported HTTP method: {method}")
99+
raise ValueError(f"Unsupported HTTP method: {method}")
101100

102101
def _make_request(
103102
self,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy