Skip to content

Commit

Permalink
Refactor unnecessary else / elif when if block has a return s…
Browse files Browse the repository at this point in the history
…tatement
  • Loading branch information
deepsource-autofix[bot] authored and Freed-Wu committed Jan 23, 2023
1 parent 21f12f3 commit f788363
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/translate_shell/utils/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def process_clipboard(text: str, prompt: str) -> str:
"""
if text:
return "\n" + prompt + text
else:
return prompt
return prompt


def get_prompt(text: str, tl: str, sl: str, translators: str) -> str:
Expand Down

0 comments on commit f788363

Please sign in to comment.