summaryrefslogtreecommitdiffstats
path: root/pkg/tasks
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-09 11:34:10 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-09 12:23:13 +1100
commite47ad846c4b6100aaff7013a3516d329bde19194 (patch)
treeead7f3f0a911d7ee4f4f46640c2bf449a74e8e05 /pkg/tasks
parent8f68ac21293f1a0476802974817d9f87875f8743 (diff)
big golangci-lint cleanup
Diffstat (limited to 'pkg/tasks')
-rw-r--r--pkg/tasks/tasks.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/tasks/tasks.go b/pkg/tasks/tasks.go
index 853c45fe9..388269de0 100644
--- a/pkg/tasks/tasks.go
+++ b/pkg/tasks/tasks.go
@@ -23,7 +23,6 @@ type Task struct {
type ViewBufferManager struct {
writer io.Writer
- waitingTask *Task
currentTask *Task
waitingMutex sync.Mutex
taskIDMutex sync.Mutex
@@ -79,7 +78,7 @@ func (m *ViewBufferManager) NewCmdTask(r io.Reader, cmd *exec.Cmd, linesToRead i
loadingMutex.Lock()
if !loaded {
m.beforeStart()
- m.writer.Write([]byte("loading..."))
+ _, _ = m.writer.Write([]byte("loading..."))
m.refreshView()
}
loadingMutex.Unlock()
@@ -111,7 +110,7 @@ func (m *ViewBufferManager) NewCmdTask(r io.Reader, cmd *exec.Cmd, linesToRead i
m.refreshView()
break outer
}
- m.writer.Write(append(scanner.Bytes(), []byte("\n")...))
+ _, _ = m.writer.Write(append(scanner.Bytes(), []byte("\n")...))
}
m.refreshView()
case <-stop:
@@ -223,5 +222,4 @@ func (t *Task) Stop() {
<-t.notifyStopped
t.Log.Info("received notifystopped message")
t.stopped = true
- return
}