···351351352352 const hints: string[] = [];
353353354354- let repeatHint = `New Position (${position})`;
354354+ const repeatHint = `New Position (${position})`;
355355 const trackDur = this.currentPlay.data.duration;
356356357357 // new position is close to start of Play
···9999100100 const newObj = new Proxy<LowercaseKeys<T>>({} as LowercaseKeys<T>, handler);
101101 // traverse the Original object converting string keys to upper case
102102- for (var key in obj) {
102102+ for (const key in obj) {
103103 if (typeof key == "string") {
104104- var objKey = key.toUpperCase();
104104+ const objKey = key.toUpperCase();
105105 if (!(key in newObj))
106106 newObj[objKey] = checkAtomic(obj[key]);
107107 }
+2-2
src/backend/utils/ListenFetchUtils.ts
···2626 let plays: PlayObject[] = [];
2727 requestCount = 0;
2828 let more = true;
2929- let currOpts = { ...opts };
2929+ const currOpts = { ...opts };
3030 let initial = true;
3131 while (more) {
3232 requestCount++;
···110110 let plays: PlayObject[] = [];
111111 requestCount = 0;
112112 let more = true;
113113- let currOpts: PaginatedListensTimeRangeOptions = opts;
113113+ const currOpts: PaginatedListensTimeRangeOptions = opts;
114114 let initial = true;
115115 let timeRangeHint: string;
116116 if(currOpts.to !== undefined && currOpts.from !== undefined) {
+3-3
src/backend/utils/NetworkUtils.ts
···231231}
232232233233export const formatWebsocketClose = (e: CloseEvent): string => {
234234- let closeParts = [];
234234+ const closeParts = [];
235235 let code = `${e.code}`;
236236 const codeHint = WEBSOCKET_CLOSE_CODE_REASONS[e.code];
237237 if(codeHint !== undefined) {
···334334 logger.trace(`Finished download!`);
335335336336 // Concat the chunks into a single array
337337- let body = new Uint8Array(received);
337337+ const body = new Uint8Array(received);
338338 let position = 0;
339339340340 // Order the chunks by their respective position
341341- for (let chunk of chunks) {
341341+ for (const chunk of chunks) {
342342 body.set(chunk, position);
343343 position += chunk.length;
344344 }