Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk committed Dec 10, 2023
1 parent 49aa0ac commit aad263a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
18 changes: 9 additions & 9 deletions packages/common/decorators/core/controller.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ export function Controller(
)
? [defaultPath, undefined, undefined, undefined]
: isString(prefixOrOptions) || Array.isArray(prefixOrOptions)
? [prefixOrOptions, undefined, undefined, undefined]
: [
prefixOrOptions.path || defaultPath,
prefixOrOptions.host,
{ scope: prefixOrOptions.scope, durable: prefixOrOptions.durable },
Array.isArray(prefixOrOptions.version)
? Array.from(new Set(prefixOrOptions.version))
: prefixOrOptions.version,
];
? [prefixOrOptions, undefined, undefined, undefined]
: [
prefixOrOptions.path || defaultPath,
prefixOrOptions.host,
{ scope: prefixOrOptions.scope, durable: prefixOrOptions.durable },
Array.isArray(prefixOrOptions.version)
? Array.from(new Set(prefixOrOptions.version))
: prefixOrOptions.version,
];

return (target: object) => {
Reflect.defineMetadata(CONTROLLER_WATERMARK, true, target);
Expand Down
4 changes: 2 additions & 2 deletions packages/core/nest-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ export class NestFactoryStatic {
return result instanceof Promise
? result.then(mapToProxy)
: result instanceof NestApplication
? proxy
: result;
? proxy
: result;
};

if (!(prop in receiver) && prop in adapter) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/router/router-response-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class RouterResponseController {
result && result.statusCode
? result.statusCode
: redirectResponse.statusCode
? redirectResponse.statusCode
: HttpStatus.FOUND;
? redirectResponse.statusCode
: HttpStatus.FOUND;
const url = result && result.url ? result.url : redirectResponse.url;
this.applicationRef.redirect(response, statusCode, url);
}
Expand Down
6 changes: 5 additions & 1 deletion packages/microservices/server/server-rmq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
(msg: Record<string, any>) => this.handleMessage(msg, channel),
{
noAck: this.noAck,
consumerTag: this.getOptionsProp(this.options, 'consumerTag', undefined)
consumerTag: this.getOptionsProp(
this.options,
'consumerTag',
undefined,
),
},
);
callback();
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-socket.io/adapters/io-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export class IoAdapter extends AbstractWsAdapter {
return server && isFunction(server.of)
? server.of(namespace)
: namespace
? this.createIOServer(port, opt).of(namespace)
: this.createIOServer(port, opt);
? this.createIOServer(port, opt).of(namespace)
: this.createIOServer(port, opt);
}

public createIOServer(port: number, options?: any): any {
Expand Down

0 comments on commit aad263a

Please sign in to comment.