Skip to content

Commit c3cd7f9

Browse files
hackwalyMTschannett
authored andcommitted
Avoid trigger getter before test it
1 parent cf2eb5f commit c3cd7f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TransformOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class TransformOperationExecutor {
205205
if (newValue.constructor.prototype) {
206206
const descriptor = Object.getOwnPropertyDescriptor(newValue.constructor.prototype, newValueKey);
207207
if ((this.transformationType === TransformationType.PLAIN_TO_CLASS || this.transformationType === TransformationType.CLASS_TO_CLASS)
208-
&& (newValue[newValueKey] instanceof Function || (descriptor && !descriptor.set))) // || TransformationType === TransformationType.CLASS_TO_CLASS
208+
&& ((descriptor && !descriptor.set) || newValue[newValueKey] instanceof Function)) // || TransformationType === TransformationType.CLASS_TO_CLASS
209209
continue;
210210
}
211211

0 commit comments

Comments
 (0)