dev: clean up unused receivers with revive ()

This commit is contained in:
Oleksandr Redko 2024-03-30 01:42:10 +02:00 committed by GitHub
parent 3945188b29
commit d31832751e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 13 additions and 12 deletions
pkg/commands

View file

@ -50,7 +50,7 @@ func newCacheCommand() *cacheCommand {
return c
}
func (c *cacheCommand) executeClean(_ *cobra.Command, _ []string) error {
func (*cacheCommand) executeClean(_ *cobra.Command, _ []string) error {
cacheDir := cache.DefaultDir()
if err := os.RemoveAll(cacheDir); err != nil {
@ -60,7 +60,7 @@ func (c *cacheCommand) executeClean(_ *cobra.Command, _ []string) error {
return nil
}
func (c *cacheCommand) executeStatus(_ *cobra.Command, _ []string) {
func (*cacheCommand) executeStatus(_ *cobra.Command, _ []string) {
cacheDir := cache.DefaultDir()
_, _ = fmt.Fprintf(logutils.StdOut, "Dir: %s\n", cacheDir)