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.
This commit is contained in:
Kynan Ware 2025-09-03 10:33:31 -06:00
parent 3d8d5f3e31
commit c3bbd374aa

View file

@ -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 == "" {