mirror of https://github.com/grpc/grpc-node.git
grpc-js: resolve eslint error eqeqeq
This commit is contained in:
parent
490217c059
commit
e9172f043a
|
@ -318,7 +318,7 @@ export class Client {
|
|||
},
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
onReceiveMessage(message: any) {
|
||||
if (responseMessage != null) {
|
||||
if (responseMessage !== null) {
|
||||
call.cancelWithStatus(Status.INTERNAL, 'Too many responses received');
|
||||
}
|
||||
responseMessage = message;
|
||||
|
@ -435,7 +435,7 @@ export class Client {
|
|||
},
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
onReceiveMessage(message: any) {
|
||||
if (responseMessage != null) {
|
||||
if (responseMessage !== null) {
|
||||
call.cancelWithStatus(Status.INTERNAL, 'Too many responses received');
|
||||
}
|
||||
responseMessage = message;
|
||||
|
|
|
@ -48,7 +48,7 @@ function validate(key: string, value?: MetadataValue): void {
|
|||
if (!isLegalKey(key)) {
|
||||
throw new Error('Metadata key "' + key + '" contains illegal characters');
|
||||
}
|
||||
if (value != null) {
|
||||
if (value !== null && value !== undefined) {
|
||||
if (isBinaryKey(key)) {
|
||||
if (!(value instanceof Buffer)) {
|
||||
throw new Error("keys that end with '-bin' must have Buffer values");
|
||||
|
|
Loading…
Reference in New Issue