Skip to content

Commit 3983eb4

Browse files
committed
fix linting issues
1 parent d2a04fa commit 3983eb4

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

bundle/src/lib/commercial-boot-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ const bootCommercial = async (
4848

4949
try {
5050
return Promise.allSettled(modules.map((module) => module())).then(
51-
()=>{
51+
() => {
5252
recordCommercialMetrics();
53-
window.guardian.commercial?.queue?.flush()
54-
}
53+
window.guardian.commercial?.queue?.flush();
54+
},
5555
);
5656
} catch (error) {
5757
// report async errors in bootCommercial to Sentry with the commercial feature tag

bundle/src/lib/guardian-commercial-queue.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ type QueueFunction = () => void;
33
interface QueueArray {
44
push: (...items: QueueFunction[]) => number;
55
flush: () => void;
6-
getAll: () => QueueFunction[];
76
}
87

98
export const createCommercialQueue = (): QueueArray => {
@@ -37,9 +36,6 @@ export const createCommercialQueue = (): QueueArray => {
3736
}
3837
});
3938
buffer.length = 0;
40-
},
41-
getAll() {
42-
return [...storage];
43-
},
39+
}
4440
};
45-
}
41+
};

0 commit comments

Comments
 (0)