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-tursoandJanne Savolainen committed 2022-10-26 11:05:42 +03:00
1 parent 110c26722a
commit ceb99ba076
1 file changed
+2 -3
@@ -44,10 +44,9 @@ const toNavigationHierarchy = (composite: Composite<PreferenceItemTypes | Prefer
// Note: These preference item types are not rendered in navigation, // 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 // yet they are interesting for deciding if eg. a tab group or a tab has content
// somewhere in structure, and therefore not be hidden. // somewhere in structure, and therefore not be hidden.
case "page": { case "page":
return emptyRender;
}
// Intentional case fallthrough
case "block": { case "block": {
return emptyRender; return emptyRender;
} }