Skip to content

Commit

Permalink
Merge pull request #21 from zkarpinski/deepsource-autofix-7c3a8464
Browse files Browse the repository at this point in the history
refactor: refactor unnecessary `else` / `elif` when `if` block has a `raise` statement
  • Loading branch information
zkarpinski authored Jan 16, 2024
2 parents 8abd2da + f2212f8 commit 9521f35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codeinsight_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def inventories(self):
def experimental(self) -> ExperimentalHandler:
if self.experimental_enabled == False:
raise CodeInsightError("Experimental API is not enabled for this instance")
else:
return ExperimentalHandler(self)
return ExperimentalHandler(self)

# Coming soon...?

Expand Down

0 comments on commit 9521f35

Please sign in to comment.