diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-12-03 21:34:14 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-12-03 21:34:14 +0000 |
| commit | e9163a8c80b9d444d4eac37199991e3f6e70094f (patch) | |
| tree | 93e575ab1bb9f91a331de21b2c080bc6a916bb7b /flag.go | |
| parent | aca3d73f8ce8cf46a80cb098589627a6b412aae1 (diff) | |
Remove redundant type conversions
Diffstat (limited to 'flag.go')
| -rw-r--r-- | flag.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -122,8 +122,6 @@ type flagValue[T any] struct { Value *T } -var _ flag.Value = &flagValue[any]{} - func (f *flagValue[T]) Set(s string) error { val, err := f.Parse(s) if err != nil { @@ -149,8 +147,6 @@ type flagValueSlice[T any] struct { shouldAppend bool } -var _ flag.Value = &flagValueSlice[any]{} - func (f *flagValueSlice[T]) Set(s string) error { vals := []string{s} if f.Separator != "" { |
