mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-16 14:43:53 +00:00
chore: bump Go to 1.26.1 and golangci-lint to v2.11.2; fix typos and lint nolints
This commit is contained in:
1 parent
844f139a10
commit
026d05f1bf
12 files changed
+23
-24
No files matched your search
@@ -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")))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user