From 473efae0377430af3ebffa4e04b7d908a385815b Mon Sep 17 00:00:00 2001 From: Patrick Rice Date: Tue, 11 Jul 2023 19:27:34 +0000 Subject: [PATCH] Fix lint errors --- job_token_scope.go | 1 - job_token_scope_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/job_token_scope.go b/job_token_scope.go index 4b7c5b3fd..a635898be 100644 --- a/job_token_scope.go +++ b/job_token_scope.go @@ -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 { diff --git a/job_token_scope_test.go b/job_token_scope_test.go index 1220f7927..7ff3a5cde 100644 --- a/job_token_scope_test.go +++ b/job_token_scope_test.go @@ -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{