提交 a02f4771 编写于 作者: J Joe Previte

refactor: remove unused code enumToArray

上级 b13849de
......@@ -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.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册