mirror of
https://github.com/coder/code-server.git
synced 2026-02-05 06:23:35 -06:00
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 typeof value !== "object" ? value : undefined
|
||||
return typeof value === "string" ? value : undefined
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user