From 0a111c6daa1e3dde74b81550f13485a5c56b90f4 Mon Sep 17 00:00:00 2001 From: Podaru Dragos Date: Sat, 25 Nov 2023 12:55:09 +0200 Subject: [PATCH] remove unnecesary paranthesis caused by casting --- src/decorators.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decorators.ts b/src/decorators.ts index 6b999cd..0a69a0b 100644 --- a/src/decorators.ts +++ b/src/decorators.ts @@ -186,14 +186,14 @@ export function params( if ( !Reflect.hasOwnMetadata( METADATA_KEY.controllerParameter, - (target).constructor + target.constructor ) ) { parameterMetadataList.unshift(parameterMetadata); } else { metadataList = Reflect.getOwnMetadata( METADATA_KEY.controllerParameter, - (target).constructor, + target.constructor, ) as ControllerParameterMetadata; if (metadataList[methodName as string]) { parameterMetadataList = metadataList[methodName as string] || []; @@ -204,7 +204,7 @@ export function params( Reflect.defineMetadata( METADATA_KEY.controllerParameter, metadataList, - (target).constructor + target.constructor ); }; }