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