Skip to content

Commit a02f477

Browse files
committedMay 10, 2022
refactor: remove unused code enumToArray
1 parent b13849d commit a02f477

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

‎src/node/util.ts

-12
Original file line numberDiff line numberDiff line change
@@ -414,18 +414,6 @@ export const open = async (address: URL | string): Promise<void> => {
414414
})
415415
}
416416

417-
/**
418-
* For iterating over an enum's values.
419-
*/
420-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
421-
export const enumToArray = (t: any): string[] => {
422-
const values = [] as string[]
423-
for (const k in t) {
424-
values.push(t[k])
425-
}
426-
return values
427-
}
428-
429417
/**
430418
* Return a promise that resolves with whether the socket path is active.
431419
*/

0 commit comments

Comments
 (0)
Failed to load comments.