From 2a12ca2a4f30e1f705812680c903d6885ff50657 Mon Sep 17 00:00:00 2001 From: Alexandre Stein Date: Wed, 6 Nov 2019 18:12:47 +0100 Subject: [PATCH] Update mod.rs (#1852) Using Typescript I have this warning: `./pkg/index.js Line 52:22: Expected '!==' and instead saw '!=' eqeqeq Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before. ` I guess this should solve the warning. Thank you for all the work. --- crates/cli-support/src/js/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index f3fbb900..8e30530b 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -950,7 +950,7 @@ impl<'a> Context<'a> { debug, encode_as_ascii, if self.config.debug { - "if (ret.read != arg.length) throw new Error('failed to pass whole string');" + "if (ret.read !== arg.length) throw new Error('failed to pass whole string');" } else { "" },