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:
parent
3d8d5f3e31
commit
c3bbd374aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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 == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue