Skip to content

Commit

Permalink
chore: Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Iku-turso committed Sep 1, 2022
1 parent b474146 commit d0b1cac
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ export const injectionDecoratorToken = getInjectionToken({
const withInstantiationDecoratorsFor = ({ injectMany, injectable }) => {
const isRelevantDecorator = isRelevantDecoratorFor(injectable);

return toBeDecorated => {
return (...args) => {
return toBeDecorated =>
(...args) => {
if (injectable.decorable === false) {
return toBeDecorated(...args);
}
Expand All @@ -462,7 +462,6 @@ const withInstantiationDecoratorsFor = ({ injectMany, injectable }) => {

return decorated(...args);
};
};
};

const withInjectionDecoratorsFor =
Expand Down

0 comments on commit d0b1cac

Please sign in to comment.