style(lint): improve error handling and testing robustness

- Fix formatting issue in error message by using a formatted string with `fmt.Errorf`

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy
2024-10-28 21:47:09 +08:00
parent 2679e1a33b
commit 38fe651776
+1 -1
View File
@@ -330,7 +330,7 @@ func (p *Plugin) Exec() error {
}
if len(errStr) != 0 {
errChannel <- fmt.Errorf(errStr)
errChannel <- fmt.Errorf("%s", errStr)
return
}