fix lint error

This commit is contained in:
ghy
2025-09-05 14:39:38 +08:00
committed by GitHub
parent 0bfd43cdd7
commit a63c411d92

View File

@@ -2,7 +2,9 @@ import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.excepti
export class InvalidTcpDataReceptionException extends RuntimeException {
constructor(err: string) {
const _errMsg = err.includes('Corrupted length value') ? 'Corrupted length value of the received data supplied in a packet.' : 'The invalid received message from tcp server.';
const _errMsg = err.includes('Corrupted length value')
? 'Corrupted length value of the received data supplied in a packet.'
: 'The invalid received message from tcp server.';
super(_errMsg);
}
}