mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix: if indexOf return 0 will if will be falsy
This commit is contained in:
@@ -472,7 +472,7 @@ export class ServerGrpc extends Server<never, never> {
|
|||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.indexOf('cancelled');
|
.indexOf('cancelled');
|
||||||
|
|
||||||
if (isCancelledError) {
|
if (isCancelledError !== -1) {
|
||||||
call.end();
|
call.end();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user