Method receiver 'c' is not referenced in method's body, consider removing it
859 return c.MaxMergeRegionSize * 10000
860}
861
862func (c *ScheduleConfig) parseDeprecatedFlag(meta *configutil.ConfigMetaData, name string, old, new bool) (bool, error) { 863 oldName, newName := "disable-"+name, "enable-"+name
864 defineOld, defineNew := meta.IsDefined(oldName), meta.IsDefined(newName)
865 switch {
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"
}