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

simple: simple var assignment in all if branch #721

Open
liuhao2050 opened this issue Apr 8, 2020 · 0 comments
Open

simple: simple var assignment in all if branch #721

liuhao2050 opened this issue Apr 8, 2020 · 0 comments
Labels
needs-decision We have to decide if this check is feasible and desirable new-check

Comments

@liuhao2050
Copy link

simple:

foo := 1
if foo == 2 {
    foo = 3
} else {
   foo = 4
}

to

foo := 4
if foo == 2 {
    foo = 3
}
@liuhao2050 liuhao2050 added the needs-triage Newly filed issue that needs triage label Apr 8, 2020
@dominikh dominikh added needs-decision We have to decide if this check is feasible and desirable new-check and removed needs-triage Newly filed issue that needs triage labels May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-decision We have to decide if this check is feasible and desirable new-check
Projects
None yet
Development

No branches or pull requests

2 participants