fix: remove useless ternary operators in options-parser
The ternary operators were checking `Array.isArray()` but returning the same value in both branches, making them completely pointless. Since profiles can contain both arrays (e.g., `['dev', 'architect']`) and strings (e.g., `'all'`), and both are valid, we should just assign the value directly. Fixed lines: - normalized.modules = profile.modules - normalized.agents = profile.agents - normalized.workflows = profile.workflows 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1dca5fb4b7
commit
b88845c0fe
|
|
@ -128,13 +128,13 @@ function parseOptions(cliOptions) {
|
||||||
|
|
||||||
// If no explicit modules/agents/workflows, use profile values
|
// If no explicit modules/agents/workflows, use profile values
|
||||||
if (!normalized.modules) {
|
if (!normalized.modules) {
|
||||||
normalized.modules = Array.isArray(profile.modules) ? profile.modules : profile.modules;
|
normalized.modules = profile.modules;
|
||||||
}
|
}
|
||||||
if (!normalized.agents) {
|
if (!normalized.agents) {
|
||||||
normalized.agents = Array.isArray(profile.agents) ? profile.agents : profile.agents;
|
normalized.agents = profile.agents;
|
||||||
}
|
}
|
||||||
if (!normalized.workflows) {
|
if (!normalized.workflows) {
|
||||||
normalized.workflows = Array.isArray(profile.workflows) ? profile.workflows : profile.workflows;
|
normalized.workflows = profile.workflows;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue