1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix shadowed variables

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2020-05-06 23:11:30 -07:00
parent 62a1c5c97b
commit 06152c7041
7 changed files with 18 additions and 22 deletions

View File

@@ -128,8 +128,8 @@ func runCommandLoop(widget *Widget) {
// The command has exited, print any error messages
if err != nil {
widget.m.Lock()
_, err := widget.buffer.WriteString(err.Error())
if err != nil {
_, writeErr := widget.buffer.WriteString(err.Error())
if writeErr != nil {
return
}
widget.m.Unlock()