Skip to content

Commit

Permalink
Apply errorlint
Browse files Browse the repository at this point in the history
  • Loading branch information
tobischo committed Mar 27, 2024
1 parent 5e06663 commit c59f373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ linters:
- musttag
- nilnil
- gomnd
- errorlint
- gocritic
- gocritic # suggests some changes that are not necessarily better
- gocognit
- dupl
- golint
Expand Down
3 changes: 2 additions & 1 deletion group.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gokeepasslib

import (
"encoding/xml"
"errors"
"io"

w "github.com/tobischo/gokeepasslib/v3/wrappers"
Expand Down Expand Up @@ -70,7 +71,7 @@ func (g Group) Clone() Group {
func (g *Group) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
for {
token, err := d.Token()
if err == io.EOF {
if errors.Is(err, io.EOF) {
break
}
switch element := token.(type) {
Expand Down

0 comments on commit c59f373

Please sign in to comment.