Skip to content

Commit

Permalink
Bug Fixed: Shadowed name
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Goncharov committed Aug 19, 2019
1 parent 729cd01 commit 30c888c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/class-wrapper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export class ClassWrapperService {
}

try {
const res = fn.apply(this, args)
if (classWrapper.isPromise(res)) {
res
const fnRes = fn.apply(this, args)
if (classWrapper.isPromise(fnRes)) {
fnRes
.then((result: any) => {
logEnd(result)
return result
Expand All @@ -67,10 +67,10 @@ export class ClassWrapperService {
logEnd(error, true)
throw error
})
return res
return fnRes
}
logEnd(res)
return res
logEnd(fnRes)
return fnRes
} catch (error) {
logEnd(error, true)
throw error
Expand Down

0 comments on commit 30c888c

Please sign in to comment.