mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 08:52:16 +01:00
Swap negative check for positive check
This commit is contained in:
parent
3cc74ccd79
commit
d14c2e5bb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue