From 7474c124c3ffbaf4707fa7f4c6e5fd445a17899d Mon Sep 17 00:00:00 2001 From: alfrix Date: Fri, 26 Apr 2024 09:03:26 -0300 Subject: [PATCH] flowboxchild: Replace if statement with if expression --- ks_includes/widgets/flowboxchild_extended.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ks_includes/widgets/flowboxchild_extended.py b/ks_includes/widgets/flowboxchild_extended.py index 0b00e6fb..599d2547 100644 --- a/ks_includes/widgets/flowboxchild_extended.py +++ b/ks_includes/widgets/flowboxchild_extended.py @@ -19,10 +19,7 @@ class PrintListItem(Gtk.FlowBoxChild): self.size = size def set_as_dir(self, is_dir: bool): - if is_dir: - self.dir = -1 - else: - self.dir = 0 + self.dir = -1 if is_dir else 0 def set_path(self, path): self.path = path