2019-03-31 19:41:37 +03:00

31 lines
465 B
Go

//args: -Egosimple
package testdata
import (
"log"
)
func Gosimple(ss []string) {
if ss != nil { // ERROR "S1031: unnecessary nil check around range"
for _, s := range ss {
log.Printf(s)
}
}
}
func GosimpleNolintGosimple(ss []string) {
if ss != nil { //nolint:gosimple
for _, s := range ss {
log.Printf(s)
}
}
}
func GosimpleNolintMegacheck(ss []string) {
if ss != nil { //nolint:megacheck
for _, s := range ss {
log.Printf(s)
}
}
}