From b4fad3f6a9c10605ca4653ab811a9437efa2c2d8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 29 Dec 2018 16:00:18 -0500 Subject: [PATCH] Logic factoring --- piker/brokers/data.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/piker/brokers/data.py b/piker/brokers/data.py index f5cff4a8..8f321659 100644 --- a/piker/brokers/data.py +++ b/piker/brokers/data.py @@ -147,11 +147,8 @@ async def fan_out_to_chans( """Get quotes for current symbol subscription set. """ symbols = list(symbols2chans.keys()) - if symbols: - # subscription can be changed at any time - return await get_quotes(symbols) - else: - return () + # subscription can be changed at any time + return await get_quotes(symbols) if symbols else () async for quotes in stream_quotes( feed.mod, request, rate,