mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2026-03-03 00:29:15 +00:00
fix docstring
This commit is contained in:
parent
f97d241f64
commit
00acafa290
@ -162,13 +162,11 @@ func createClient(flags *Flags) (*vbantxt.VbanTxt, func(), error) {
|
|||||||
return client, closer, err
|
return client, closer, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// sendCommands sends a list of commands to the VBAN client.
|
// sendCommands sends the provided VBAN commands using the client and logs any errors that occur.
|
||||||
func sendCommands(client *vbantxt.VbanTxt, commands []string) {
|
func sendCommands(client *vbantxt.VbanTxt, commands []string) {
|
||||||
for _, cmd := range commands {
|
for _, cmd := range commands {
|
||||||
err := client.Send(cmd)
|
if err := client.Send(cmd); err != nil {
|
||||||
if err != nil {
|
|
||||||
log.Errorf("Failed to send command '%s': %v", cmd, err)
|
log.Errorf("Failed to send command '%s': %v", cmd, err)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user