mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 14:29:15 +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
|
// add -x to args if args exist
|
||||||
if (args && args.length > 0) {
|
if (args && args.length > 0) {
|
||||||
if (!args.includes('-y')) {
|
if (!args.includes('-y')) {
|
||||||
!args.includes('-y') && args.unshift('-y')
|
args.unshift('-y')
|
||||||
}
|
}
|
||||||
if (!args.includes('x')) {
|
if (!args.includes('x')) {
|
||||||
args.unshift('x')
|
args.unshift('x')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user