Skip to content

Commit

Permalink
Remove empty return to allow else clause in post-list shortcode. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devilgate committed Jul 13, 2020
1 parent 433b3b1 commit dd1a525
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nikola/plugins/shortcode/post_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_t

posts += [post]

if not posts:
return '', []

template_deps = site.template_system.template_deps(template)
if state:
# Register template as a dependency (Issue #2391)
Expand Down

0 comments on commit dd1a525

Please sign in to comment.