refactor: remove unused code enumToArray
This commit is contained in:
parent
b13849ded0
commit
a02f47714e
@ -414,18 +414,6 @@ export const open = async (address: URL | string): Promise<void> => {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* For iterating over an enum's values.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export const enumToArray = (t: any): string[] => {
|
||||
const values = [] as string[]
|
||||
for (const k in t) {
|
||||
values.push(t[k])
|
||||
}
|
||||
return values
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a promise that resolves with whether the socket path is active.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user