mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +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}
|
|
}
|