Skip to content

Commit

Permalink
fix: more linter stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Sep 25, 2024
1 parent 71ecc54 commit d413952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/nvmedit/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void yargs
} catch (e) {
try {
json = await nvm500ToJSON(buffer);
} catch (e) {
} catch {
console.error(e);
process.exit(1);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/nvmedit/src/lib/nvm3/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,18 +576,18 @@ export class NVM3Adapter implements NVMAdapter {
property: ControllerNVMProperty,
value: any,
): Promise<void> {
const failFileMissing = (): never => {
function failFileMissing(): never {
throw new ZWaveError(
"Cannot set property in NVM for non-existing file",
ZWaveErrorCodes.NVM_ObjectNotFound,
);
};
}

const expectFile = async <T extends NVMFile>(
fileId: number,
): Promise<T> => {
const file = await this._getFile<T>(fileId);
if (!file) throw failFileMissing();
if (!file) failFileMissing();
return file;
};

Expand Down

0 comments on commit d413952

Please sign in to comment.