cmux-next palette: missing return in familyRow (base compile red since #22764)
Base red, priority zero. RegistryPaletteProvider+Families.swift:58 has a let and then an expression, which is not a single-expression body, so Swift needs return. Every CmuxNext package build of feat-cmux-next fails: error: missing return in static method expected to return 'PaletteItem' (cmux-ci step fe26283335be9a6c2bb2f864 on aws-m4pro-5, head of PR #22814).
Changelog
none
Observed / Not run
- Observed: the compile error in the cmux-ci step log at the base.
- Not run: a separate compile of this one-word fix; the CmuxNext steps of #22813 and #22814 compile it.
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes the missing return in familyRow(_:members:) that has been breaking the feat-cmux-next base since #22764. The method body has a let declaration followed by an expression, which Swift doesn't treat as a single-expression body, so it needs an explicit return. This was causing every CmuxNext package build to fail with error: missing return in static method expected to return 'PaletteItem'.