Skip to content

Commit 9268225

Browse files
committed
fix(jsonView): remove lines
1 parent ac769e9 commit 9268225

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/decorators.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ export function JsonView(params?: {}, method?: string): Function {
6666

6767
let isPromise = !!result && (typeof result === "object" || typeof result === "function") && typeof result.then === "function";
6868

69-
return isPromise ?
70-
result.then((data: any) => transformer(data, params)) :
71-
transformer(result, params);
69+
return isPromise ? result.then((data: any) => transformer(data, params)) : transformer(result, params);
7270
};
7371
};
7472
}

0 commit comments

Comments
 (0)