♻️ Fix go vet error

This commit is contained in:
Dan Jones 2025-03-14 13:47:44 -05:00
commit dd531c1f73
2 changed files with 4 additions and 2 deletions

View file

@ -12,7 +12,7 @@ func Make(conf Config) (string, error) {
}
if conf.prefix != "" {
conf.prefix = conf.prefix + conf.separator
conf.prefix += conf.separator
}
if conf.original != "" {
conf.original = conf.separator + conf.original

View file

@ -36,7 +36,9 @@ func TestMake(t *testing.T) {
for _, testcase := range testcases {
t.Run(testcase.name, func(sub *testing.T) {
opts := append(testcase.opts, genOpt)
opts := testcase.opts
opts = append(opts, genOpt)
conf := NewConfig(opts...)
st, err := Make(conf)
assert.NoError(t, err)