Skip to content

Commit

Permalink
Remove unnecessary else if
Browse files Browse the repository at this point in the history
  • Loading branch information
horgh committed Jun 27, 2024
1 parent dc611ff commit 5286918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/mmdbinspect/mmdbinspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ func OpenDB(path string) (*maxminddb.Reader, error) {

if errors.Is(err, fs.ErrNotExist) {
return nil, fmt.Errorf("%v does not exist", path)
} else if err != nil {
}
if err != nil {
return nil, fmt.Errorf("stating %s: %w", path, err)
}

Expand Down

0 comments on commit 5286918

Please sign in to comment.