Fix golangci-lint findings across the coordinator and agent

This commit is contained in:
Emil
2026-08-02 18:23:43 +03:00
parent 565d4466e4
commit 771952e22e
11 changed files with 70 additions and 73 deletions
+4 -4
View File
@@ -1,6 +1,7 @@
package agent
import (
"errors"
"fmt"
"os"
"regexp"
@@ -36,10 +37,9 @@ func IsRetryableError(err error) bool {
if err == nil {
return false
}
switch err.(type) {
case *CoordinatorError:
return false
case *os.PathError:
var coordinatorErr *CoordinatorError
var pathErr *os.PathError
if errors.As(err, &coordinatorErr) || errors.As(err, &pathErr) {
return false
}
return true