mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
Remove redundant condition check in MCP service args handling (#5606)
Remove duplicate !args.includes('-y') check
This commit is contained in:
parent
fb3c18ff48
commit
61f5fa9be2
@ -183,7 +183,7 @@ class McpService {
|
||||
// add -x to args if args exist
|
||||
if (args && args.length > 0) {
|
||||
if (!args.includes('-y')) {
|
||||
!args.includes('-y') && args.unshift('-y')
|
||||
args.unshift('-y')
|
||||
}
|
||||
if (!args.includes('x')) {
|
||||
args.unshift('x')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user