1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2022-03-30 22:17:34 +03:00 committed by Janne Savolainen
parent 0bf819a469
commit 0e92d1d1f8
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -22,13 +22,7 @@ const routesInjectable = getInjectable({
allRoutes
.get()
.filter(matches({ clusterFrame: currentlyInClusterFrame }))
.filter((route) => {
if (route.isEnabled) {
return route.isEnabled.get();
}
return true;
}),
.filter((route) => route.isEnabled.get()),
);
},
});