From 11899920b7807984740017a8869fe0548e83c8f9 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:13:43 -0800 Subject: [PATCH] Fixed FURB110 (if-exp-instead-of-or-operator): Replace ternary `if` expression with `or` operator --- management/status_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index da2c2f16..b584f9e1 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -1114,7 +1114,7 @@ class ConsoleOutput(FileOutput): class BufferedOutput: # Record all of the instance method calls so we can play them back later. def __init__(self, with_lines=None): - self.buf = with_lines if with_lines else [] + self.buf = with_lines or [] def __getattr__(self, attr): if attr not in {"add_heading", "print_ok", "print_error", "print_warning", "print_block", "print_line"}: raise AttributeError