Archived
1
0

refactor: remove unused code enumToArray

This commit is contained in:
Joe Previte 2022-05-10 23:26:04 +00:00
parent b13849ded0
commit a02f47714e

View File

@ -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.
*/