From cae60f7c2922d5abeeaec6a211047736a502b829 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Fri, 8 Aug 2025 13:36:45 -0500 Subject: [PATCH] gtk-ng: use single if expression instead of block --- src/apprt/gtk-ng/class/window.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/apprt/gtk-ng/class/window.zig b/src/apprt/gtk-ng/class/window.zig index 30a82d963..79017fbc8 100644 --- a/src/apprt/gtk-ng/class/window.zig +++ b/src/apprt/gtk-ng/class/window.zig @@ -906,9 +906,7 @@ pub const Window = extern struct { .tabs => { // *Conditionally* disable the tab bar when maximized, the titlebar // style is tabs, and gtk-titlebar-hide-when-maximized is set. - if (self.isMaximized() and config.@"gtk-titlebar-hide-when-maximized") { - return false; - } + if (self.isMaximized() and config.@"gtk-titlebar-hide-when-maximized") return false; // If the titlebar style is tabs the tab bar must always be visible. return true;