Skip to content

Commit 241b29d

Browse files
committed
perf: prettier formatting
1 parent c43890c commit 241b29d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/decorator/object/IsNotEmptyObject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export function isNotEmptyObject(value: unknown, options?: { nullable?: boolean
1414
}
1515

1616
if (options?.nullable === false) {
17-
for (const key in value ) {
18-
if ((value ).hasOwnProperty(key)) {
17+
for (const key in value) {
18+
if (value.hasOwnProperty(key)) {
1919
const propertyValue = (value as any)[key];
2020
if (propertyValue !== null && propertyValue !== undefined) {
2121
return true;

src/validation/ValidationExecutor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class ValidationExecutor {
232232

233233
const validatedValue = metadata.inlineValidate(value, validationArguments);
234234
if (validatedValue !== true && validatedValue !== false) {
235-
const promise = (validatedValue ).then(isValid => {
235+
const promise = validatedValue.then(isValid => {
236236
if (!isValid) {
237237
if (!validationError) validationError = this.generateValidationError(object, value, propertyName);
238238
const [type, message] = this.createValidationErrorInline(metadata, validationArguments);
@@ -409,7 +409,7 @@ export class ValidationExecutor {
409409
const validatedValue = metadata.inlineValidate(value, validationArguments);
410410
if (validatedValue !== true && validatedValue !== false) {
411411
// Async result (Promise)
412-
const promise = (validatedValue ).then(isValid => {
412+
const promise = validatedValue.then(isValid => {
413413
if (!isValid) {
414414
const error = getError();
415415
const [type, message] = this.createValidationErrorInline(metadata, validationArguments);

0 commit comments

Comments
 (0)