Skip to content

Commit

Permalink
Simplify arguments builder chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Mar 19, 2019
1 parent 30e96cc commit a4493b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sphinxcontrib/httpexample/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@


def choose_builders(arguments):
if not arguments:
return []

return [directives.choice(argument, AVAILABLE_BUILDERS)
for argument in arguments]
for argument in (arguments or [])]


class HTTPExample(CodeBlock):
Expand Down

0 comments on commit a4493b3

Please sign in to comment.