Skip to content

Commit

Permalink
style: remove unnecessary whitespace and semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Nov 20, 2023
1 parent e153113 commit d92ddbc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/database/mikro-orm.encrypted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class EncryptedType extends Type {
private readonly encIV = process.env.ENC_IV;

convertToDatabaseValue(value: string, _platform: Platform): string {
if (value && !(isString(value.valueOf())))
if (value && !isString(value.valueOf()))
throw ValidationError.invalidType(EncryptedType, value, "JS");

return encrypt({ text: value.toString(), config: { key: this.encKey, iv: this.encIV } });
Expand Down
2 changes: 1 addition & 1 deletion src/common/decorators/validation/transform.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function Sanitize(): PropertyDecorator {
return DOMPurify.sanitize(v);

return v;
})
});
}

if (isString(value))
Expand Down
1 change: 0 additions & 1 deletion src/common/interceptors/cache.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { IGNORE_CACHING_META } from "@common/constant";
@Injectable()
export class HttpCacheInterceptor extends CacheInterceptor {
protected isRequestCacheable(context: ExecutionContext): boolean {

const request = context.switchToHttp().getRequest<NestifyRequest>();

const ignoreCaching: boolean = this.reflector.get(
Expand Down
2 changes: 0 additions & 2 deletions src/common/interceptors/request-sanitizer.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,4 @@ export class RequestSanitizerInterceptor implements NestInterceptor {

return value;
}


}

0 comments on commit d92ddbc

Please sign in to comment.