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:
parent
0bf819a469
commit
0e92d1d1f8
@ -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;
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user