mirror of
https://github.com/mgechev/revive.git
synced 2024-11-30 08:57:07 +02:00
12 lines
186 B
Go
12 lines
186 B
Go
package fixtures
|
|
|
|
func foo(a bool, b int) { // MATCH /parameter 'a' seems to be a control flag, avoid control coupling/
|
|
if a {
|
|
|
|
}
|
|
}
|
|
|
|
func foo(a bool, b int) {
|
|
str := mystruct{a, b}
|
|
}
|