Remove redundant code

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso authored and Janne Savolainen committed 2022-03-31 15:13:36 +03:00
1 parent 0bf819a469
commit 0e92d1d1f8
1 file changed
+1 -7
+1 -7
View File
@@ -22,13 +22,7 @@ const routesInjectable = getInjectable({
allRoutes allRoutes
.get() .get()
.filter(matches({ clusterFrame: currentlyInClusterFrame })) .filter(matches({ clusterFrame: currentlyInClusterFrame }))
.filter((route) => { .filter((route) => route.isEnabled.get()),
if (route.isEnabled) {
return route.isEnabled.get();
}
return true;
}),
); );
}, },
}); });