chore: bump Go to 1.26.1 and golangci-lint to v2.11.2; fix typos and lint nolints

This commit is contained in:
2026-03-10 02:32:40 +04:00
parent 844f139a10
commit 026d05f1bf
12 changed files with 23 additions and 24 deletions

View File

@@ -418,7 +418,7 @@ func (config Config) Validate() error {
validationErrors = append(validationErrors, types.NewFieldValidationError("Duration", "0", errors.New("duration must be greater than 0")))
}
if *config.Timeout < 1 {
if config.Timeout == nil || *config.Timeout < 1 {
validationErrors = append(validationErrors, types.NewFieldValidationError("Timeout", "0", errors.New("timeout must be greater than 0")))
}