Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RicePatrick committed Jul 11, 2023
1 parent 243213c commit 473efae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion job_token_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type GetJobTokenInboundAllowOptions struct {
//
// GitLab API docs: https://docs.gitlab.com/ee/api/project_job_token_scopes.html#get-a-projects-cicd-job-token-inbound-allowlist
func (j *JobTokenScopeService) GetProjectJobTokenInboundAllowlist(pid interface{}, opt *GetJobTokenInboundAllowOptions, options ...RequestOptionFunc) ([]*Project, *Response, error) {

// Parse the project Id or namespace and create the URL
project, err := parseID(pid)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions job_token_scope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ func TestAddProjectToJobScopeAllowList(t *testing.T) {
w.WriteHeader(http.StatusCreated)

// Print on the response with the proper target project
fmt.Fprint(w, fmt.Sprintf(`{
fmt.Fprintf(w, `{
"source_project_id": 1,
"target_project_id": %d
}`, createTokenRequest.TargetProjectID))
}`, createTokenRequest.TargetProjectID)
})

want := &AddJobTokenInboundAllowResponse{
Expand Down

0 comments on commit 473efae

Please sign in to comment.