Skip to content

Commit f4555aa

Browse files
committed
perf: prettier formatting
1 parent cc7a3db commit f4555aa

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);
@@ -410,7 +410,7 @@ export class ValidationExecutor {
410410
const validatedValue = metadata.inlineValidate(value, validationArguments);
411411
if (validatedValue !== true && validatedValue !== false) {
412412
// Async result (Promise)
413-
const promise = (validatedValue ).then(isValid => {
413+
const promise = validatedValue.then(isValid => {
414414
if (!isValid) {
415415
const error = getError();
416416
const [type, message] = this.createValidationErrorInline(metadata, validationArguments);

0 commit comments

Comments
 (0)