mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
dev: add gofmt rewrite rule to ensure 'any' is always used (#3780)
This commit is contained in:
parent
12ffb0b36a
commit
bbc2f34dec
3 changed files with 8 additions and 4 deletions
|
@ -54,7 +54,7 @@ func (c *Cache) Trim() {
|
|||
})
|
||||
}
|
||||
|
||||
func (c *Cache) Put(pkg *packages.Package, mode HashMode, key string, data interface{}) error {
|
||||
func (c *Cache) Put(pkg *packages.Package, mode HashMode, key string, data any) error {
|
||||
var err error
|
||||
buf := &bytes.Buffer{}
|
||||
c.sw.TrackStage("gob", func() {
|
||||
|
@ -93,7 +93,7 @@ func (c *Cache) Put(pkg *packages.Package, mode HashMode, key string, data inter
|
|||
|
||||
var ErrMissing = errors.New("missing data")
|
||||
|
||||
func (c *Cache) Get(pkg *packages.Package, mode HashMode, key string, data interface{}) error {
|
||||
func (c *Cache) Get(pkg *packages.Package, mode HashMode, key string, data any) error {
|
||||
var aID cache.ActionID
|
||||
var err error
|
||||
c.sw.TrackStage("key build", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue