1
0
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:
Iku-turso 2022-10-26 11:05:42 +03:00
parent 110c26722a
commit ceb99ba076

View File

@ -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;
}