You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 9, 2021. It is now read-only.
package main
import (
"fmt"
)
func main() {
res := get(3)
fmt.Println(res)
}
func get(i int) int {
if f := i * 2; f == 6 {
return f
} else {
return f * 3
}
}
Running golint displays:
main.go:15:9: if block ends with a return statement, so drop this else and outdent its block