mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-06 19:39:19 -04:00
dev: clean up unused receivers with revive (#4599)
This commit is contained in:
parent
3945188b29
commit
d31832751e
9 changed files with 13 additions and 12 deletions
pkg/commands
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue