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

Null comparisons without type-checking operators may not work as intended #265

Closed
sebastianrath opened this issue Mar 10, 2022 · 0 comments
Assignees

Comments

@sebastianrath
Copy link
Contributor

8 occurrences, see https://deepsource.io/gh/snowtrack/snowfs/issue/JS-0059/occurrences

Use '===' to compare with null

snowfs/src/reference.ts

Lines 60 to 70 in 58ac16f

{
hash: this.hash,
start: this.startHash,
});
ref.userData = {};
if (this.userData != null) {
ref.userData = { ...this.userData };
}
return ref;

@sebastianrath sebastianrath self-assigned this Mar 10, 2022
sebastianrath added a commit to sebastianrath/snowfs that referenced this issue Mar 10, 2022
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