mirror of
https://github.com/aykhans/sarin.git
synced 2026-04-15 04:29:35 +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:
@@ -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