Skip to content

Conversation

@styxit
Copy link
Member

@styxit styxit commented Apr 3, 2025

Description

Remove not-working iterations check. Iteration 0 is valid. This check was not working due to strict-compare between string and int always returning false

Even when providing 0 as iteration it was comparing '0' === 0. Because this is a strict-compare, it always returns false.

Motivation and context

It removes code that looks like it should prevent using 0 as iteration while in reality this was not the case.

How has this been tested?

All tests ran and pass. Some testcases use 0 as iteration and they still are passing.

Iteration 0 is allowed. This check was not working due to strict-compare between string and int always returning false
@styxit styxit added the enhancement Enhancement of the code, not introducing new features. label Apr 3, 2025
@trizz trizz merged commit f8c3339 into master Apr 3, 2025
50 of 51 checks passed
@trizz trizz deleted the nsec3param-iteration-0 branch April 3, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement of the code, not introducing new features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants