Skip to content

Commit

Permalink
Fix linting error "else after return"
Browse files Browse the repository at this point in the history
pylint throws R1705: Unnecessary "else" after "return" (no-else-return).
  • Loading branch information
hakonhagland committed Sep 1, 2021
1 parent cf28d69 commit 5416551
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ansi2html/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ def handle_osc_links(self, part):
if self.latex:
self.hyperref = True
return """\\href{%s}{%s}""" % (part.url, part.text)
else:
return """<a href="%s">%s</a>""" % (part.url, part.text)
return """<a href="%s">%s</a>""" % (part.url, part.text)

def apply_regex(self, ansi):
styles_used = set()
Expand Down

0 comments on commit 5416551

Please sign in to comment.