From 30f89d57390da33f71ca011c7a8f4486a1f75324 Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Tue, 9 Jan 2024 18:01:34 -0800 Subject: [PATCH] simplify --- bumble/rfcomm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/rfcomm.py b/bumble/rfcomm.py index dc6bdfd1..d72b260d 100644 --- a/bumble/rfcomm.py +++ b/bumble/rfcomm.py @@ -538,7 +538,7 @@ def on_uih_frame(self, frame: RFCOMM_Frame) -> None: f'[{self.dlci}] {len(data)} bytes, ' f'rx_credits={self.rx_credits}: {data.hex()}' ) - if len(data): + if data: if self.sink: self.sink(data) # pylint: disable=not-callable