mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Simplify fallthrough in a switch/case
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
parent
110c26722a
commit
ceb99ba076
@ -44,10 +44,9 @@ const toNavigationHierarchy = (composite: Composite<PreferenceItemTypes | Prefer
|
||||
// Note: These preference item types are not rendered in navigation,
|
||||
// yet they are interesting for deciding if eg. a tab group or a tab has content
|
||||
// somewhere in structure, and therefore not be hidden.
|
||||
case "page": {
|
||||
return emptyRender;
|
||||
}
|
||||
case "page":
|
||||
|
||||
// Intentional case fallthrough
|
||||
case "block": {
|
||||
return emptyRender;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user