mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-09-28 08:49:04 +02:00
chore(deps): update dependency golangci/golangci-lint to v2.13.1 (master) (#2477)
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
co-authored by
Jan-Otto Kröpke
parent
2743d4e3f7
commit
75b0c11bb4
@@ -35,8 +35,7 @@ func (m *Error) Is(err error) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
var e *Error
|
||||
if errors.As(err, &e) {
|
||||
if e, ok := errors.AsType[*Error](err); ok {
|
||||
return m.ErrorCode == e.ErrorCode
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user