fix(skills): make skippedReason switch exhaustive (#9594)
The type-aware switch-exhaustiveness lint rule requires explicit cases for 'current', 'duplicate', and undefined; they fall through to the existing generic skipped message, so behavior is unchanged. Co-authored-by: Yuris Auzins <zuz666@users.noreply.github.com>
This commit is contained in:
parent
a2e440b308
commit
ffe54a59a3
|
|
@ -134,7 +134,11 @@ function skippedReason(locations: readonly SkillLocationRow[]): string {
|
|||
'auto.components.skills.SkillFreshnessRow.skippedReasonBrokenLink',
|
||||
'This copy is a shortcut to something that no longer exists, so Orca left it out — you can safely delete it.'
|
||||
)
|
||||
default:
|
||||
// Why: 'current'/'duplicate' are non-blocking chips, and an empty priority
|
||||
// list is possible; all fall through to the generic skipped message.
|
||||
case 'current':
|
||||
case 'duplicate':
|
||||
case undefined:
|
||||
return translate(
|
||||
'auto.components.skills.SkillFreshnessRow.cantUpdateReason',
|
||||
'Orca left this skill out of the update command.'
|
||||
|
|
|
|||
Loading…
Reference in New Issue