Skip to content

Commit 5174792

Browse files
Fix linting issue
1 parent 51d17ef commit 5174792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/engine/daemon.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func getPath(instructions string) (string, string) {
6868
return strings.TrimSpace(rest), strings.TrimSpace(value)
6969
}
7070

71-
func (e *Engine) startDaemon(ctx context.Context, tool types.Tool) (string, error) {
71+
func (e *Engine) startDaemon(_ context.Context, tool types.Tool) (string, error) {
7272
daemonLock.Lock()
7373
defer daemonLock.Unlock()
7474

@@ -85,7 +85,7 @@ func (e *Engine) startDaemon(ctx context.Context, tool types.Tool) (string, erro
8585
daemonCtx, daemonClose = context.WithCancel(context.Background())
8686
}
8787

88-
ctx = daemonCtx
88+
ctx := daemonCtx
8989
port = e.getNextPort()
9090
url = fmt.Sprintf("http://127.0.0.1:%d%s", port, path)
9191

0 commit comments

Comments
 (0)