diff --git a/src/apply-aspect.ts b/src/apply-aspect.ts index 075d42f5..b782e152 100644 --- a/src/apply-aspect.ts +++ b/src/apply-aspect.ts @@ -1,7 +1,7 @@ -export function applyAspect(advicePool: any) { - return function(target) { +export function applyAspect (advicePool: any) { + return function (target) { for (let key in advicePool) { - if(key === "constructor") { + if (key === "constructor") { advicePool[key].forEach(advice => target = advice(target)) } else { advicePool[key].forEach(advice => {