Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit dd959a8

Browse files
committed
Address EladBezalel's feedback
1 parent 168ba08 commit dd959a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/services/interimElement/interimElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function InterimElementProvider() {
430430

431431
// Note: This function might be called when the element already has been removed,
432432
// in which case we won't find any matches.
433-
if (filtered.length > 0) {
433+
if (filtered.length) {
434434
interim = filtered[0];
435435
showingInterims.splice(showingInterims.indexOf(interim), 1);
436436
}

src/core/services/interimElement/interimElement.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ describe('$$interimElement service', function() {
388388
}
389389
});
390390

391-
it('should cancel a previous interim after it completes hiding', inject(function($q, $timeout) {
391+
it('should cancel a previous interim after a second shows up', inject(function($q, $timeout) {
392392
var hidePromise = $q.defer();
393393
var isShown = false;
394394

0 commit comments

Comments
 (0)