Skip to content

Commit faa61ae

Browse files
A bit more lint fixing
1 parent 32730c6 commit faa61ae

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

types/node/v14/test/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ import { access, readFile } from "node:fs";
162162
const arg1NoResult: (arg: string) => Promise<any> = util.promisify(
163163
(arg: string, cb: (err: Error | null) => void): void => {},
164164
);
165+
// tslint:disable-next-line void-return
165166
const cbOptionalError: () => Promise<void | {}> = util.promisify((cb: (err?: Error | null) => void): void => {
166167
cb();
167-
}); // tslint:disable-line void-return
168+
});
168169
assert(typeof util.promisify.custom === "symbol");
169170
// util.deprecate
170171
const foo = () => {};

types/node/v18/test/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,10 @@ const arg1UnknownError: (arg: string) => Promise<number> = util.promisify(
170170
const arg1NoResult: (arg: string) => Promise<any> = util.promisify(
171171
(arg: string, cb: (err: Error | null) => void): void => {},
172172
);
173+
// tslint:disable-next-line void-return
173174
const cbOptionalError: () => Promise<void | {}> = util.promisify((cb: (err?: Error | null) => void): void => {
174175
cb();
175-
}); // tslint:disable-line void-return
176+
});
176177
assert(typeof util.promisify.custom === "symbol");
177178
// util.deprecate
178179
const foo = () => {};

0 commit comments

Comments
 (0)