@@ -61,7 +61,7 @@ type enterpriseCostCenterRemoveResponse struct {
6161 Message string `json:"message"`
6262}
6363
64- func enterpriseCostCentersList (ctx context.Context , client * github.Client , enterpriseSlug string , state string ) ([]enterpriseCostCenter , error ) {
64+ func enterpriseCostCentersList (ctx context.Context , client * github.Client , enterpriseSlug , state string ) ([]enterpriseCostCenter , error ) {
6565 u , err := url .Parse (fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers" , enterpriseSlug ))
6666 if err != nil {
6767 return nil , err
@@ -87,7 +87,7 @@ func enterpriseCostCentersList(ctx context.Context, client *github.Client, enter
8787 return result .CostCenters , nil
8888}
8989
90- func enterpriseCostCenterGet (ctx context.Context , client * github.Client , enterpriseSlug string , costCenterID string ) (* enterpriseCostCenter , error ) {
90+ func enterpriseCostCenterGet (ctx context.Context , client * github.Client , enterpriseSlug , costCenterID string ) (* enterpriseCostCenter , error ) {
9191 req , err := client .NewRequest ("GET" , fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers/%s" , enterpriseSlug , costCenterID ), nil )
9292 if err != nil {
9393 return nil , err
@@ -102,7 +102,7 @@ func enterpriseCostCenterGet(ctx context.Context, client *github.Client, enterpr
102102 return & result , nil
103103}
104104
105- func enterpriseCostCenterCreate (ctx context.Context , client * github.Client , enterpriseSlug string , name string ) (* enterpriseCostCenter , error ) {
105+ func enterpriseCostCenterCreate (ctx context.Context , client * github.Client , enterpriseSlug , name string ) (* enterpriseCostCenter , error ) {
106106 req , err := client .NewRequest ("POST" , fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers" , enterpriseSlug ), & enterpriseCostCenterCreateRequest {Name : name })
107107 if err != nil {
108108 return nil , err
@@ -117,7 +117,7 @@ func enterpriseCostCenterCreate(ctx context.Context, client *github.Client, ente
117117 return & result , nil
118118}
119119
120- func enterpriseCostCenterUpdate (ctx context.Context , client * github.Client , enterpriseSlug string , costCenterID string , name string ) (* enterpriseCostCenter , error ) {
120+ func enterpriseCostCenterUpdate (ctx context.Context , client * github.Client , enterpriseSlug , costCenterID , name string ) (* enterpriseCostCenter , error ) {
121121 req , err := client .NewRequest ("PATCH" , fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers/%s" , enterpriseSlug , costCenterID ), & enterpriseCostCenterUpdateRequest {Name : name })
122122 if err != nil {
123123 return nil , err
@@ -132,7 +132,7 @@ func enterpriseCostCenterUpdate(ctx context.Context, client *github.Client, ente
132132 return & result , nil
133133}
134134
135- func enterpriseCostCenterArchive (ctx context.Context , client * github.Client , enterpriseSlug string , costCenterID string ) (* enterpriseCostCenterArchiveResponse , error ) {
135+ func enterpriseCostCenterArchive (ctx context.Context , client * github.Client , enterpriseSlug , costCenterID string ) (* enterpriseCostCenterArchiveResponse , error ) {
136136 req , err := client .NewRequest ("DELETE" , fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers/%s" , enterpriseSlug , costCenterID ), nil )
137137 if err != nil {
138138 return nil , err
@@ -147,7 +147,7 @@ func enterpriseCostCenterArchive(ctx context.Context, client *github.Client, ent
147147 return & result , nil
148148}
149149
150- func enterpriseCostCenterAssignResources (ctx context.Context , client * github.Client , enterpriseSlug string , costCenterID string , reqBody enterpriseCostCenterResourcesRequest ) (* enterpriseCostCenterAssignResponse , error ) {
150+ func enterpriseCostCenterAssignResources (ctx context.Context , client * github.Client , enterpriseSlug , costCenterID string , reqBody enterpriseCostCenterResourcesRequest ) (* enterpriseCostCenterAssignResponse , error ) {
151151 req , err := client .NewRequest ("POST" , fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers/%s/resource" , enterpriseSlug , costCenterID ), & reqBody )
152152 if err != nil {
153153 return nil , err
@@ -162,7 +162,8 @@ func enterpriseCostCenterAssignResources(ctx context.Context, client *github.Cli
162162 return & result , nil
163163}
164164
165- func enterpriseCostCenterRemoveResources (ctx context.Context , client * github.Client , enterpriseSlug string , costCenterID string , reqBody enterpriseCostCenterResourcesRequest ) (* enterpriseCostCenterRemoveResponse , error ) {
165+ //nolint:unparam
166+ func enterpriseCostCenterRemoveResources (ctx context.Context , client * github.Client , enterpriseSlug , costCenterID string , reqBody enterpriseCostCenterResourcesRequest ) (* enterpriseCostCenterRemoveResponse , error ) {
166167 req , err := client .NewRequest ("DELETE" , fmt .Sprintf ("enterprises/%s/settings/billing/cost-centers/%s/resource" , enterpriseSlug , costCenterID ), & reqBody )
167168 if err != nil {
168169 return nil , err
@@ -177,7 +178,7 @@ func enterpriseCostCenterRemoveResources(ctx context.Context, client *github.Cli
177178 return & result , nil
178179}
179180
180- func enterpriseCostCenterSplitResources (resources []enterpriseCostCenterResource ) (users [] string , organizations [] string , repositories []string ) {
181+ func enterpriseCostCenterSplitResources (resources []enterpriseCostCenterResource ) (users , organizations , repositories []string ) {
181182 for _ , r := range resources {
182183 switch strings .ToLower (r .Type ) {
183184 case "user" :
0 commit comments