cleanup lint
This commit is contained in:
parent
3105265da6
commit
a3397444ac
|
@ -7,7 +7,7 @@ import (
|
||||||
"unicode"
|
"unicode"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
scalar "github.com/alexflint/go-scalar"
|
"github.com/alexflint/go-scalar"
|
||||||
)
|
)
|
||||||
|
|
||||||
var textUnmarshalerType = reflect.TypeOf([]encoding.TextUnmarshaler{}).Elem()
|
var textUnmarshalerType = reflect.TypeOf([]encoding.TextUnmarshaler{}).Elem()
|
||||||
|
|
|
@ -59,7 +59,7 @@ func TestCardinalityOf(t *testing.T) {
|
||||||
|
|
||||||
type implementsTextUnmarshaler struct{}
|
type implementsTextUnmarshaler struct{}
|
||||||
|
|
||||||
func (*implementsTextUnmarshaler) UnmarshalText(text []byte) error {
|
func (*implementsTextUnmarshaler) UnmarshalText(_ []byte) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
scalar "github.com/alexflint/go-scalar"
|
"github.com/alexflint/go-scalar"
|
||||||
)
|
)
|
||||||
|
|
||||||
// setSliceOrMap parses a sequence of strings into a slice or map. If clear is
|
// setSliceOrMap parses a sequence of strings into a slice or map. If clear is
|
||||||
|
|
2
usage.go
2
usage.go
|
@ -163,7 +163,7 @@ func printTwoCols(w io.Writer, left, help string, defaultVal string, envVal stri
|
||||||
_, _ = fmt.Fprint(w, help)
|
_, _ = fmt.Fprint(w, help)
|
||||||
}
|
}
|
||||||
|
|
||||||
bracketsContent := []string{}
|
var bracketsContent []string
|
||||||
|
|
||||||
if defaultVal != "" {
|
if defaultVal != "" {
|
||||||
bracketsContent = append(bracketsContent,
|
bracketsContent = append(bracketsContent,
|
||||||
|
|
Loading…
Reference in New Issue