mirror of
https://github.com/mgechev/revive.git
synced 2025-11-29 22:28:23 +02:00
refactor: enable few linters in golangci-lint config (#1580)
This commit is contained in:
@@ -37,7 +37,7 @@ func New(reader ReadFile, maxOpenFiles int) Linter {
|
||||
}
|
||||
}
|
||||
|
||||
func (l Linter) readFile(path string) (result []byte, err error) {
|
||||
func (l *Linter) readFile(path string) (result []byte, err error) {
|
||||
if l.fileReadTokens != nil {
|
||||
// "take" a token by writing to the channel.
|
||||
// It will block if no more space in the channel's buffer
|
||||
|
||||
Reference in New Issue
Block a user