aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-08-16 12:25:02 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-08-16 12:25:02 +0100
commitaea02cab94c6c16b247620be3eaf29d6d974b8d7 (patch)
tree1718fd8cbd11e9a07e07953c0ed057b9c24bf4fe /main.go
parentfec23dc86f8840e368509159d9c13578d3c33dc4 (diff)
Remove superfluous variables
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.go b/main.go
index 5fd8c06..7fee39e 100644
--- a/main.go
+++ b/main.go
@@ -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 {