diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-08-16 12:25:02 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-08-16 12:25:02 +0100 |
| commit | aea02cab94c6c16b247620be3eaf29d6d974b8d7 (patch) | |
| tree | 1718fd8cbd11e9a07e07953c0ed057b9c24bf4fe /main.go | |
| parent | fec23dc86f8840e368509159d9c13578d3c33dc4 (diff) | |
Remove superfluous variables
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -26,8 +26,7 @@ import ( type IPListFlag []net.IP func (f *IPListFlag) String() string { - var l []net.IP = *f - return fmt.Sprintf("%s", l) + return fmt.Sprintf("%s", []net.IP(*f)) } func (f *IPListFlag) Set(s string) error { @@ -42,8 +41,7 @@ func (f *IPListFlag) Set(s string) error { type StringListFlag []string func (f *StringListFlag) String() string { - var l []string = *f - return fmt.Sprintf("%s", l) + return fmt.Sprintf("%s", []string(*f)) } func (f *StringListFlag) Set(s string) error { |
