Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f4e7a2

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

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

‎src/node/util.ts

Lines changed: 0 additions & 12 deletions
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)
Please sign in to comment.