Skip to content

Commit 9521f35

Browse files
authored
Merge pull request #21 from zkarpinski/deepsource-autofix-7c3a8464
refactor: refactor unnecessary `else` / `elif` when `if` block has a `raise` statement
2 parents 8abd2da + f2212f8 commit 9521f35

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

codeinsight_sdk/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def inventories(self):
9090
def experimental(self) -> ExperimentalHandler:
9191
if self.experimental_enabled == False:
9292
raise CodeInsightError("Experimental API is not enabled for this instance")
93-
else:
94-
return ExperimentalHandler(self)
93+
return ExperimentalHandler(self)
9594

9695
# Coming soon...?
9796

0 commit comments

Comments
 (0)