Skip to content

Commit

Permalink
make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Aug 11, 2023
1 parent 749d947 commit e52d549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions heartbeat/monitors/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ func (t *configuredJob) Start(pubClient beat.Client) {
return
}

tf := t.makeSchedulerTaskFunc()
t.cancelFn, err = t.monitor.addTask(t.config.Schedule, t.monitor.stdFields.ID, tf, t.config.Type)
t.cancelFn, err = t.monitor.addTask(t.config.Schedule, t.monitor.stdFields.ID, t.makeSchedulerTaskFunc(), t.config.Type)
if err != nil {
logp.L().Info("could not start monitor: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/tracer/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func listenTilClosed(t *testing.T, sockPath string) []string {
conn, err := listener.Accept()
require.NoError(t, err)
// no need to pre-allocate, but it seems to make the linter happy
var received []string = make([]string, 0, 10)
received := make([]string, 0, 10)
scanner := bufio.NewScanner(conn)
for scanner.Scan() {
received = append(received, scanner.Text())
Expand Down

0 comments on commit e52d549

Please sign in to comment.