Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Minor tweaks…
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Sep 2, 2023
1 parent 01d55f6 commit 1701623
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions job_token_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func (j *JobTokenScopeService) GetProjectJobTokenAccessSettings(pid interface{},
return nil, nil, err
}

var settings *JobTokenAccessSettings
resp, err := j.client.Do(req, &settings)
jt := new(JobTokenAccessSettings)
resp, err := j.client.Do(req, jt)
if err != nil {
return nil, resp, err
}

return settings, resp, err
return jt, resp, err
}

// PatchProjectJobTokenAccessSettingsOptions represents the available
Expand Down Expand Up @@ -156,13 +156,13 @@ func (j *JobTokenScopeService) AddProjectToJobScopeAllowList(pid interface{}, op
return nil, nil, err
}

ai := new(JobTokenInboundAllowItem)
resp, err := j.client.Do(req, ai)
jt := new(JobTokenInboundAllowItem)
resp, err := j.client.Do(req, jt)
if err != nil {
return nil, resp, err
}

return ai, resp, nil
return jt, resp, nil
}

// RemoveProjectFromJobScopeAllowList removes a project from a project's job
Expand Down

0 comments on commit 1701623

Please sign in to comment.