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

Incorrect using typeof operator #1299

Open
undermuz opened this issue Dec 14, 2022 · 1 comment
Open

Incorrect using typeof operator #1299

undermuz opened this issue Dec 14, 2022 · 1 comment

Comments

@undermuz
Copy link
Contributor

In this code:
https://github.com/postmanlabs/postman-collection/blob/main/lib/collection/response.js#L139
https://github.com/postmanlabs/postman-collection/blob/main/lib/collection/request.js#L63

You are using typeof operator incorrectly, because typeof operator returns string with type name like 'undefined', 'function', etc, but not a type.

@undermuz
Copy link
Contributor Author

Fix: #1300

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