mirror of https://git.tuxpa.in/a/code-server.git
Swap negative check for positive check
This commit is contained in:
parent
3cc74ccd79
commit
d14c2e5bb7
|
@ -110,5 +110,5 @@ export const getFirstString = (value: string | string[] | object | undefined): s
|
||||||
return value[0]
|
return value[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
return typeof value !== "object" ? value : undefined
|
return typeof value === "string" ? value : undefined
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue