fix: drop the unreachable no-ruleset tooltip fallback

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-08-14 10:35:37 +02:00
parent 6e4d853a8f
commit 18003b37a0
@@ -574,8 +574,8 @@
if (dev) {
return `Edits to this workspace are made in its ${devLabelNoun(dev.dev_workspace_label)} ${dev.name} (${dev.id}) and promoted here.`
}
// Non-empty wherever this is read: the entry is only disabled when the same rulesets say so.
const rulesets = getActiveRulesetsForKind('DisableDirectDeployment')
if (rulesets.length === 0) return 'Direct edits to this workspace are restricted.'
const names = rulesets.map((r) => r.name).join(', ')
return rulesets.length > 1
? `The rules ${names} restrict direct edits to this workspace.`