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

Same code in both if and else statements #40

Open
bertung opened this issue May 1, 2023 · 0 comments
Open

Same code in both if and else statements #40

bertung opened this issue May 1, 2023 · 0 comments

Comments

@bertung
Copy link

bertung commented May 1, 2023

There are at least 4 places in the code the following occurs. Both if and else block is same.

        if (intLength < 3) {
          length = readUInt(buffer.slice(offset + 2, offset + 2 + intLength));
        } else {
          length = readUInt(buffer.slice(offset + 2, offset + 2 + intLength));
        }
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