File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ type QueueFunction = () => void;
33interface QueueArray {
44 push : ( ...items : QueueFunction [ ] ) => number ;
55 flush : ( ) => void ;
6- getAll : ( ) => QueueFunction [ ] ;
76}
87
98export 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+ } ;
You can’t perform that action at this time.
0 commit comments