Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W080 false positive #2699

Closed
nicolo-ribaudo opened this issue Sep 29, 2015 · 0 comments
Closed

W080 false positive #2699

nicolo-ribaudo opened this issue Sep 29, 2015 · 0 comments

Comments

@nicolo-ribaudo
Copy link
Contributor

var code = undefined === 0;

JSHint warns that it's not necessary to initialize code to undefined

nicolo-ribaudo added a commit to nicolo-ribaudo/jshint that referenced this issue Sep 29, 2015
Example:
   var a = undefined === 0; // a is 'false', not 'undefined'

Fixes jshintgh-2699
jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Jan 2, 2016
Example:
   var a = undefined === 0; // a is 'false', not 'undefined'

Fixes jshintgh-2699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant