mirror of
https://github.com/coder/code-server.git
synced 2026-04-16 21:31:43 -05: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