Method receiver 'command' is not referenced in method's body, consider removing or renaming it as _
178 )
179}
180
181func (command *LoginCommand) passwordGrant(client concourse.Client, username, password string) (string, string, error) {182
183 oauth2Config := oauth2.Config{
184 ClientID: "fly",
Description
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
Bad practice
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
Recommended
func (*Unix) Name() string {
return "unix"
}