Method receiver 'b' is not referenced in method's body, consider removing or renaming it as _
1852
1853// OnCheckBuildStart is a hook point called after a worker is selected. For DB
1854// build, there is nothing to in at this point.
1855func (b *build) OnCheckBuildStart() error {1856 return nil
1857}
1858
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"
}