flowboxchild: Replace if statement with if expression

This commit is contained in:
alfrix committed 2024-04-26 20:34:43 -03:00
1 parent 4dd489575e
commit 7474c124c3
1 file changed
+1 -4
+1 -4
View File
@@ -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