mirror of
https://github.com/coder/code-server.git
synced 2025-07-31 22:13:52 +08:00
Swap negative check for positive check
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user