Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

chore: use a for loop instead Array.map() when the return value is discarded. #469

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lib/media-query/mock/mock-match-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export class MockMatchMedia extends MatchMedia {
private _deactivateAll() {
if (this._actives.length) {
// Deactivate all current MQLs and reset the buffer
this._actives.map(it => it.deactivate());
for (const it of this._actives) {
it.deactivate();
}
this._actives = [];
}
return this;
Expand Down