mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Address cpplint issue "An else should appear on the same line as the preceding } [whitespace/newline] [4]"
This commit is contained in:
@@ -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<BYTE*>(&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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user