File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 = ( ) => { } ;
Original file line number Diff line number Diff line change @@ -170,9 +170,10 @@ const arg1UnknownError: (arg: string) => Promise<number> = util.promisify(
170170const arg1NoResult : ( arg : string ) => Promise < any > = util . promisify (
171171 ( arg : string , cb : ( err : Error | null ) => void ) : void => { } ,
172172) ;
173+ // tslint:disable-next-line void-return
173174const cbOptionalError : ( ) => Promise < void | { } > = util . promisify ( ( cb : ( err ?: Error | null ) => void ) : void => {
174175 cb ( ) ;
175- } ) ; // tslint:disable-line void-return
176+ } ) ;
176177assert ( typeof util . promisify . custom === "symbol" ) ;
177178// util.deprecate
178179const foo = ( ) => { } ;
You can’t perform that action at this time.
0 commit comments