Skip to content

Commit

Permalink
remove unnecesary paranthesis caused by casting
Browse files Browse the repository at this point in the history
  • Loading branch information
PodaruDragos committed Nov 25, 2023
1 parent 3049993 commit 0a111c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] || [];
Expand All @@ -204,7 +204,7 @@ export function params(
Reflect.defineMetadata(
METADATA_KEY.controllerParameter,
metadataList,
(target).constructor
target.constructor
);
};
}

0 comments on commit 0a111c6

Please sign in to comment.