From 00d9baa605bc57bc180aee23236daa5e876c38d9 Mon Sep 17 00:00:00 2001 From: liusi Date: Tue, 15 Nov 2016 13:23:59 +0800 Subject: [PATCH] fix linting error --- atom/browser/native_window_views.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 898812c9755..620fb7e797b 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -571,9 +571,8 @@ void NativeWindowViews::SetContentSizeConstraints( void NativeWindowViews::SetResizable(bool resizable) { #if defined(OS_WIN) - if (has_frame()) { + if (has_frame()) FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME); - } #elif defined(USE_X11) if (resizable != resizable_) { // On Linux there is no "resizable" property of a window, we have to set @@ -595,11 +594,10 @@ void NativeWindowViews::SetResizable(bool resizable) { bool NativeWindowViews::IsResizable() { #if defined(OS_WIN) - if (has_frame()) { + if (has_frame()) return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_THICKFRAME; - } else { + else return CanResize(); - } #else return CanResize(); #endif