♻️ Fix go vet error
This commit is contained in:
parent
9e84cfe5f9
commit
dd531c1f73
2 changed files with 4 additions and 2 deletions
2
make.go
2
make.go
|
|
@ -12,7 +12,7 @@ func Make(conf Config) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if conf.prefix != "" {
|
if conf.prefix != "" {
|
||||||
conf.prefix = conf.prefix + conf.separator
|
conf.prefix += conf.separator
|
||||||
}
|
}
|
||||||
if conf.original != "" {
|
if conf.original != "" {
|
||||||
conf.original = conf.separator + conf.original
|
conf.original = conf.separator + conf.original
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,9 @@ func TestMake(t *testing.T) {
|
||||||
|
|
||||||
for _, testcase := range testcases {
|
for _, testcase := range testcases {
|
||||||
t.Run(testcase.name, func(sub *testing.T) {
|
t.Run(testcase.name, func(sub *testing.T) {
|
||||||
opts := append(testcase.opts, genOpt)
|
opts := testcase.opts
|
||||||
|
opts = append(opts, genOpt)
|
||||||
|
|
||||||
conf := NewConfig(opts...)
|
conf := NewConfig(opts...)
|
||||||
st, err := Make(conf)
|
st, err := Make(conf)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue