Small clean-up (#1827)

* chore: avoid shadow variable name

* chore: map could just be foreach

* clean uneeded template literal

* lint
This commit is contained in:
Alex Christoffer Rasmussen
2025-10-13 20:24:25 +02:00
committed by GitHub
parent 9b36f36f73
commit 45e7373279
6 changed files with 10 additions and 10 deletions
@@ -50,7 +50,7 @@ export function isRestorePoint(restorePoint: unknown): restorePoint is RestorePo
return false;
}
if (!is.number(restorePoint.startEpoch) && restorePoint.startEpoch !== null) {
if (!is.number(restorePoint.startEpoch) && restorePoint.startEpoch !== null) {
return false;
}
@@ -377,7 +377,7 @@ export async function upload(sheetId: string, options: ImportMap) {
const titleMetadata = Object.values(sheetMetadata)[0];
if (titleMetadata === undefined) {
throw new Error(`Sheet read failed: failed to find title row`);
throw new Error('Sheet read failed: failed to find title row');
}
const titleRow = titleMetadata['row'];
const updateRundown = Array<sheets_v4.Schema$Request>();