mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
refactor: simplify object assignment & use startsWith (#3891)
This commit is contained in:
parent
1366ba0115
commit
472943281f
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ function asObjectSafe(value: any): object {
|
|||
|
||||
// Handle pre-existing objects
|
||||
if (typeof value === "object") {
|
||||
return Object.assign({}, value)
|
||||
return { ...value }
|
||||
}
|
||||
|
||||
return {}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ rel/path/to/helper.ts
|
|||
│----
|
||||
*/
|
||||
|
||||
const isWindows = /^win/.test(process.platform)
|
||||
const isWindows = process.platform.startsWith("win")
|
||||
const binName = isWindows ? "rg.exe" : "rg"
|
||||
|
||||
interface SearchFileResult {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue