Enable no-case-declarations lint

This commit is contained in:
valadaptive
2023-12-02 10:14:06 -05:00
parent a665a4897d
commit 27e63a7a77
6 changed files with 14 additions and 8 deletions

View File

@ -7,7 +7,7 @@ const parse = async (cardUrl, format) => {
let fileFormat = format === undefined ? 'png' : format;
switch (fileFormat) {
case 'png':
case 'png': {
const buffer = fs.readFileSync(cardUrl);
const chunks = extract(buffer);
@ -23,6 +23,7 @@ const parse = async (cardUrl, format) => {
}
return Buffer.from(textChunks[0].text, 'base64').toString('utf8');
}
default:
break;
}