Bug 1376628 - Don't use 'else' after 'break' or 'return' in dom/base/ (clang-tidy: readability-else-after-return). r=ehsan

This commit is contained in:
Jan Keromnes 2017-06-27 17:23:00 -04:00
Родитель 13fee0b758
Коммит e6fb1d5091
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -2716,7 +2716,8 @@ nsDOMWindowUtils::ZoomToFocusedInput()
while (currentFrame) { while (currentFrame) {
if (currentFrame == rootFrame) { if (currentFrame == rootFrame) {
break; break;
} else if (currentFrame == scrolledFrame) { }
if (currentFrame == scrolledFrame) {
// we are in the rootScrollFrame so this element is not fixed // we are in the rootScrollFrame so this element is not fixed
isFixedPos = false; isFixedPos = false;
break; break;

Просмотреть файл

@ -10757,7 +10757,9 @@ void nsGlobalWindow::SetIsBackground(bool aIsBackground)
inner->StopGamepadHaptics(); inner->StopGamepadHaptics();
} }
return; return;
} else if (inner) { }
if (inner) {
inner->SyncGamepadState(); inner->SyncGamepadState();
} }
} }