Move check upwards in cli.timeline

This commit is contained in:
buckket 2016-04-07 12:45:43 +02:00
parent 698ce22882
commit 2af186e061
1 changed files with 2 additions and 2 deletions

View File

@ -152,11 +152,11 @@ def timeline(ctx, pager, limit, twtfile, sorting, timeout, porcelain, source, ca
source = Source(ctx.obj["conf"].nick, ctx.obj["conf"].twturl, file=twtfile)
tweets.extend(get_local_tweets(source, limit))
tweets = sort_and_truncate_tweets(tweets, sorting, limit)
if not tweets:
return
tweets = sort_and_truncate_tweets(tweets, sorting, limit)
if pager:
click.echo_via_pager(style_timeline(tweets, porcelain))
else: