Skip to content

Commit 1e042d5

Browse files
committed
chore: remove redundant unknown annotation in error catching
1 parent f78c278 commit 1e042d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/features/upload/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ function generateSampleData({
415415
multiString += ';)';
416416
}
417417
return multiString;
418-
} catch (e: unknown) {
418+
} catch (e) {
419419
if (e instanceof Error && e.message === 'input data is undefined or unsuccessful') {
420420
throw new Error('Unsuccessful input data transfer or undefined data');
421421
}
@@ -467,7 +467,7 @@ export function createUploadTemplateCSV(instrument: AnyUnilingualFormInstrument)
467467
content: unparse([csvColumns, sampleData]),
468468
fileName: `${instrument.internal.name}_${instrument.internal.edition}_template.csv`
469469
};
470-
} catch (e: unknown) {
470+
} catch (e) {
471471
if (e instanceof Error && e.message) {
472472
throw e;
473473
}

0 commit comments

Comments
 (0)