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

[BVR-02C] Redundant Parenthesis Statements #733

Closed
zajck opened this issue Aug 1, 2023 · 0 comments · Fixed by #750
Closed

[BVR-02C] Redundant Parenthesis Statements #733

zajck opened this issue Aug 1, 2023 · 0 comments · Fixed by #750
Assignees
Labels
enhancement New feature or request v2.3.0

Comments

@zajck
Copy link
Member

zajck commented Aug 1, 2023

BVR-02C: Redundant Parenthesis Statements

Type Severity Location
Code Style BosonVoucher.sol:L113, L223, L279, L282, L317

Description:

The referenced statements are redundantly wrapped in parenthesis' (()).

Example:

require((_tokenId < rangeStart) || (_tokenId >= rangeStart + range.length), EXCHANGE_ID_IN_RESERVED_RANGE);

Recommendation:

We advise them to be safely omitted, increasing the legibility of the codebase.

@zajck zajck added enhancement New feature or request v2.3.0 labels Aug 1, 2023
@zajck zajck self-assigned this Aug 3, 2023
zajck added a commit that referenced this issue Aug 3, 2023
zajck added a commit that referenced this issue Aug 17, 2023
…#750)

* fix #733

* fix #735

* Fix #739

---------

Co-authored-by: Ludovic Levalleux <levalleux_ludo@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2.3.0
Projects
None yet
1 participant