Skip to content

Commit 99022d5

Browse files
authored
test(fix): don't override function argument (runfinch#224)
Signed-off-by: Justin Alvarez <[email protected]>
1 parent 460b73f commit 99022d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

e2e/util/option_wrapper.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type NewOpt func(subject []string, modifiers ...option.Modifier) (*option.Option
1717
// not the same as the system running the tests, like inside a SSH shell.
1818
func WrappedOption(prefix []string, wModifiers ...option.Modifier) NewOpt {
1919
return func(subject []string, modifiers ...option.Modifier) (*option.Option, error) {
20-
prefix = append(prefix, subject...)
21-
return option.New(prefix, append(wModifiers, modifiers...)...)
20+
return option.New(append(prefix, subject...), append(wModifiers, modifiers...)...)
2221
}
2322
}

0 commit comments

Comments
 (0)