From 8a8b516aff4005faeea3df0f3ecb22527c10ae8d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 9 Sep 2018 17:31:04 +0200 Subject: cec: Simplify a few code snippets. --- decoders/cec/protocoldata.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'decoders/cec/protocoldata.py') diff --git a/decoders/cec/protocoldata.py b/decoders/cec/protocoldata.py index dd867e0..fb80494 100644 --- a/decoders/cec/protocoldata.py +++ b/decoders/cec/protocoldata.py @@ -107,10 +107,7 @@ def resolve_logical_address(id, is_initiator): # Special handling of 0x0F. if id == 0x0F: - if is_initiator: - return 'Unregistered' - else: - return 'Broadcast' + return 'Unregistered' if is_initiator else 'Broadcast' return logical_adresses[id] -- cgit v1.2.3-70-g09d2