mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +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
@@ -190,8 +190,7 @@ func waitUntilListening(tb testing.TB, network, address string) error {
|
||||
break
|
||||
}
|
||||
|
||||
var winErr windows.Errno
|
||||
if errors.As(err, &winErr) {
|
||||
if winErr, ok := errors.AsType[windows.Errno](err); ok {
|
||||
return fmt.Errorf("listener not listening: %w (#%d)", winErr, uint32(winErr))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user