Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Jul 9, 2024
1 parent 31ee1a7 commit bddeadc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linters-settings:
- performance
- style
govet:
check-shadowing: true
shadowing: true
nolintlint:
require-explanation: true
require-specific: true
Expand All @@ -22,7 +22,7 @@ linters:
enable:
- bodyclose
#- deadcode
- depguard
#- depguard
- dogsled
- dupl
- errcheck
Expand All @@ -31,7 +31,7 @@ linters:
- goconst
- gofmt
- goimports
- gomnd
- mnd
- gocyclo
- gosec
- gosimple
Expand Down
2 changes: 1 addition & 1 deletion element.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (e *Element) FindElements(strategy LocatorStrategy, selector string) ([]Ele
return nil, err
}

for index, _ := range elements {
for index := range elements {
elements[index].SessionID = e.SessionID
elements[index].client = e.client
}
Expand Down
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (s *Session) FindElements(strategy LocatorStrategy, selector string) ([]Ele
return nil, err
}

for index, _ := range elements {
for index := range elements {
elements[index].SessionID = s.ID
elements[index].client = s.client
}
Expand Down
2 changes: 1 addition & 1 deletion shadowroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *ShadowRoot) FindElements(strategy LocatorStrategy, selector string) ([]
return nil, err
}

for index, _ := range elements {
for index := range elements {
elements[index].SessionID = s.ID
elements[index].client = s.client
}
Expand Down

0 comments on commit bddeadc

Please sign in to comment.