mirror of https://github.com/coder/code-server.git
refactor(util): remove unused isObject function (#5183)
This commit is contained in:
parent
3207bfd4ad
commit
cd78f32dc0
|
@ -435,10 +435,6 @@ export const buildAllowedMessage = (t: any): string => {
|
|||
return `Allowed value${values.length === 1 ? " is" : "s are"} ${values.map((t) => `'${t}'`).join(", ")}`
|
||||
}
|
||||
|
||||
export const isObject = <T extends object>(obj: T): obj is T => {
|
||||
return !Array.isArray(obj) && typeof obj === "object" && obj !== null
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a promise that resolves with whether the socket path is active.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue