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

Add if_same_then_else #85

Open
0xLucqs opened this issue Sep 19, 2024 · 4 comments
Open

Add if_same_then_else #85

0xLucqs opened this issue Sep 19, 2024 · 4 comments

Comments

@0xLucqs
Copy link
Contributor

0xLucqs commented Sep 19, 2024

What it does

Checks for if/else with the same body as the then part and the else part.

Why is this bad?

This is probably a copy & paste error.

Example

let foo = if … {
    42
} else {
    42
};
@Gianfranco99
Copy link
Contributor

Hello! I'd like to take this issue. I have a background in Cairo and I'm familiar with spotting these kinds of redundancy issues.

Copy link

onlydustapp bot commented Sep 19, 2024

Hey @Gianfranco99!
Thanks for showing interest.
We've created an application for you to contribute to Cairo lint.
Go check it out on OnlyDust!

@fishonamos
Copy link

Hi @0xLucqs . I will take this one as discussed.

Copy link

onlydustapp bot commented Sep 19, 2024

Hey @fishonamos!
Thanks for showing interest.
We've created an application for you to contribute to Cairo lint.
Go check it out on OnlyDust!

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

3 participants