diff --git a/brightray/browser/win/win32_desktop_notifications/toast.cc b/brightray/browser/win/win32_desktop_notifications/toast.cc index 2727bc9ed12f..879163a26290 100644 --- a/brightray/browser/win/win32_desktop_notifications/toast.cc +++ b/brightray/browser/win/win32_desktop_notifications/toast.cc @@ -32,8 +32,7 @@ static COLORREF GetAccentColor() { GetGValue(color), GetBValue(color)); success = true; - } - else if ( + } else if ( RegQueryValueEx(hkey, TEXT("ColorizationColor"), nullptr, &type, reinterpret_cast(&color), @@ -517,8 +516,7 @@ void DesktopNotificationController::Toast::UpdateBufferSize() { width = width * maxDimSize / height; height = maxDimSize; } - } - else { + } else { if (width > maxDimSize) { height = height * maxDimSize / width; width = maxDimSize; diff --git a/brightray/browser/win/win32_notification.cc b/brightray/browser/win/win32_notification.cc index f1ac9598a7f5..495569b036a5 100644 --- a/brightray/browser/win/win32_notification.cc +++ b/brightray/browser/win/win32_notification.cc @@ -42,8 +42,7 @@ void Win32Notification::Show( existing->tag_.clear(); this->notification_ref_ = std::move(existing->notification_ref_); this->notification_ref_.Set(title, msg, image); - } - else { + } else { this->notification_ref_ = presenter->AddNotification(title, msg, image); }