Skip to content

Commit 5c47ccd

Browse files
BrianDGLSBrian Douglas
authored andcommitted
refactor(@common/utils): remove unused import in forward ref util
1 parent 9ca3816 commit 5c47ccd

4 files changed

Lines changed: 5953 additions & 8 deletions

File tree

lib/common/utils/http-exception-body.util.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export declare const createHttpExceptionBody: (message: any, error: string, stat
55
} | {
66
statusCode: number;
77
error: string;
8+
message?: undefined;
89
};
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
import { isFunction } from './shared.utils';
2-
3-
export function forwardRef(fn: () => any) {
4-
return { forwardRef: fn };
5-
}
1+
export const forwardRef = (fn: () => any) => ({ forwardRef: fn });
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export const createHttpExceptionBody = (
22
message: any,
33
error: string,
4-
status: number,
4+
statusCode: number,
55
) =>
66
message
7-
? { statusCode: status, error, message }
8-
: { statusCode: status, error };
7+
? { statusCode, error, message }
8+
: { statusCode, error };

0 commit comments

Comments
 (0)