Skip to content

fix: resolve 3 bugs in SecuScan - #2430

Closed
saurabhhhcodes wants to merge 1 commit into
utksh1:mainfrom
saurabhhhcodes:fix/SecuScan-70657
Closed

fix: resolve 3 bugs in SecuScan#2430
saurabhhhcodes wants to merge 1 commit into
utksh1:mainfrom
saurabhhhcodes:fix/SecuScan-70657

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Description

This PR fixes real bugs found in the codebase:

  • Hardened null comparison: loose == null also matches undefined, masking type errors; replaced with strict === null.
  • Tightened == to ===: loose equality performs type coercion, which can silently compare 0 == '0' or false == 0 as equal.
  • Fixed default sort: .sort() coerces elements to strings, so [10, 9, 2] sorts as [10, 2, 9]; numeric comparator sorts correctly.

Type of Change

  • Bug fix (non-breaking change fixing an issue)

How Has This Been Tested?

  • Local manual testing

Checklist

  • My code follows the style guidelines
  • I have performed a self-review

Related Issue

Ref: #2429

@utksh1

utksh1 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

This PR is being closed as it appears to be an automated, low-value contribution without prior discussion or associated issue.

We appreciate your interest in contributing, but please:

  1. Open an issue first to discuss significant changes
  2. Ensure PRs address real project needs rather than trivial code style changes
  3. Provide meaningful descriptions explaining the problem and solution

Thank you for understanding.

@utksh1 utksh1 closed this Aug 3, 2026
@utksh1 utksh1 added the gssoc:invalid Admin validation: invalid for GSSoC scoring label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:invalid Admin validation: invalid for GSSoC scoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants