We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cfc1f7 commit f99da3bCopy full SHA for f99da3b
driver/generic/sendcommands.go
@@ -15,7 +15,7 @@ func (d *Driver) SendCommands(
15
d.Logger.Infof("SendCommands requested, sending '%s'", commands)
16
17
if len(commands) == 0 {
18
- return nil, fmt.Errorf("%w: no commands provided", util.ErrNoOp)
+ return nil, fmt.Errorf("%w: no inputs provided", util.ErrNoOp)
19
}
20
21
op, err := NewOperation(opts...)
@@ -25,10 +25,6 @@ func (d *Driver) SendCommands(
25
26
m := response.NewMultiResponse(d.Transport.GetHost())
27
28
- if len(commands) == 0 {
29
- return m, err
30
- }
31
-
32
for _, input := range commands[:len(commands)-1] {
33
var r *response.Response
34
0 commit comments