Skip to content

Commit

Permalink
Update mod.rs (#1852)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alexandre Stein authored and alexcrichton committed Nov 6, 2019
1 parent 79cf4f6 commit 2a12ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
""
},
Expand Down

0 comments on commit 2a12ca2

Please sign in to comment.