Skip to content

Commit 7329c9b

Browse files
committed
fix(jsonView): fix jslint errors
1 parent 1fb950e commit 7329c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function JsonView(params?: {}, method?: string): Function {
6464
let transformer: Function = typeof method === "string" && method ? classTransformer[method] : classTransformer.classToPlain;
6565
let result: any = originalMethod.apply(this, args);
6666

67-
if (!!result && (typeof result === 'object' || typeof result === 'function') && typeof result.then === 'function') {
67+
if (!!result && (typeof result === "object" || typeof result === "function") && typeof result.then === "function") {
6868
// If result is an instance of Promise.
6969
return result.then((data: any) => {
7070
return transformer(result, params);

0 commit comments

Comments
 (0)