Method receiver 'l' is not referenced in method's body, consider removing it
283 return nil
284}
285
286func (l *Launcher) getPostgresConfig(config *CreateClusterInput) *fly.MachineConfig {287 machineConfig := fly.MachineConfig{}
288
289 // Set env
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"
}