mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
20191217 gosec (#796)
* Add gosec to the Makefile Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix some issues found by gosec Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -128,7 +128,10 @@ func runCommandLoop(widget *Widget) {
|
||||
// The command has exited, print any error messages
|
||||
if err != nil {
|
||||
widget.m.Lock()
|
||||
widget.buffer.WriteString(err.Error())
|
||||
_, err := widget.buffer.WriteString(err.Error())
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
widget.m.Unlock()
|
||||
}
|
||||
widget.redrawChan <- true
|
||||
|
||||
Reference in New Issue
Block a user