mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1624232
- 1624232
: Replaced 'else if' with 'if' after 'return' in dom/html/TextTrackManager.cpp r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D68114 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
185e72e0aa
commit
d224a48fdf
@ -496,7 +496,8 @@ class CompareSimpleTextTrackEvents {
|
||||
// TimeMarchesOn step 13.1.
|
||||
if (aOne->mTime < aTwo->mTime) {
|
||||
return true;
|
||||
} else if (aOne->mTime > aTwo->mTime) {
|
||||
}
|
||||
if (aOne->mTime > aTwo->mTime) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -514,7 +515,8 @@ class CompareSimpleTextTrackEvents {
|
||||
auto index2 = textTracks.IndexOf(t2);
|
||||
if (index1 < index2) {
|
||||
return true;
|
||||
} else if (index1 > index2) {
|
||||
}
|
||||
if (index1 > index2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -526,12 +528,14 @@ class CompareSimpleTextTrackEvents {
|
||||
if (c1 != c2) {
|
||||
if (c1->StartTime() < c2->StartTime()) {
|
||||
return true;
|
||||
} else if (c1->StartTime() > c2->StartTime()) {
|
||||
}
|
||||
if (c1->StartTime() > c2->StartTime()) {
|
||||
return false;
|
||||
}
|
||||
if (c1->EndTime() < c2->EndTime()) {
|
||||
return true;
|
||||
} else if (c1->EndTime() > c2->EndTime()) {
|
||||
}
|
||||
if (c1->EndTime() > c2->EndTime()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -542,7 +546,8 @@ class CompareSimpleTextTrackEvents {
|
||||
auto index2 = cues.IndexOf(c2);
|
||||
if (index1 < index2) {
|
||||
return true;
|
||||
} else if (index1 > index2) {
|
||||
}
|
||||
if (index1 > index2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user