From c3bbd374aa97444298f7cd76d017919b0bd4fcea Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:33:31 -0600 Subject: [PATCH] Remove nil check for job in agentSessionWebURL Simplifies the agentSessionWebURL function by removing the redundant nil check for the job parameter, assuming it is always non-nil when called. --- pkg/cmd/agent-task/create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/agent-task/create/create.go b/pkg/cmd/agent-task/create/create.go index dfed399be..843579ba6 100644 --- a/pkg/cmd/agent-task/create/create.go +++ b/pkg/cmd/agent-task/create/create.go @@ -137,7 +137,7 @@ func createRun(opts *CreateOptions) error { } func agentSessionWebURL(repo ghrepo.Interface, j *capi.Job) string { - if j == nil || j.PullRequest == nil { + if j.PullRequest == nil { return "" } if j.SessionID == "" {