mirror of
https://github.com/mgechev/revive.git
synced 2025-01-24 03:47:45 +02:00
41 lines
468 B
Go
41 lines
468 B
Go
|
package fixtures
|
||
|
|
||
|
func identicalBranches() {
|
||
|
if true { // MATCH /both branches of the if are identical/
|
||
|
|
||
|
} else {
|
||
|
|
||
|
}
|
||
|
|
||
|
if true {
|
||
|
|
||
|
}
|
||
|
|
||
|
if true {
|
||
|
print()
|
||
|
} else {
|
||
|
}
|
||
|
|
||
|
if true { // MATCH /both branches of the if are identical/
|
||
|
print()
|
||
|
} else {
|
||
|
print()
|
||
|
}
|
||
|
|
||
|
if true {
|
||
|
if true { // MATCH /both branches of the if are identical/
|
||
|
print()
|
||
|
} else {
|
||
|
print()
|
||
|
}
|
||
|
} else {
|
||
|
println()
|
||
|
}
|
||
|
|
||
|
if true {
|
||
|
println("something")
|
||
|
} else {
|
||
|
println("else")
|
||
|
}
|
||
|
}
|