types: fix lint issue

This commit is contained in:
c9s 2022-12-26 01:49:46 +08:00
parent 2d2d194bda
commit e9ff0dcc66
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
)
var simpleDurationRegExp = regexp.MustCompile("^(\\d+)([hdw])$")
var simpleDurationRegExp = regexp.MustCompile(`^(\d+)([hdw])$`)
var ErrNotSimpleDuration = errors.New("the given input is not simple duration format, valid format: [1-9][0-9]*[hdw]")