Skip to content

Commit

Permalink
Remove unnecessary use of fmt.Sprintf (#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Jun 26, 2023
1 parent 1e7c685 commit bed40d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions github/admin_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package github

import (
"context"
"fmt"
)

// AdminStats represents a variety of stats of a GitHub Enterprise
Expand Down Expand Up @@ -155,7 +154,7 @@ func (s RepoStats) String() string {
//
// GitHub API docs: https://docs.github.com/en/rest/enterprise-admin/admin_stats/
func (s *AdminService) GetAdminStats(ctx context.Context) (*AdminStats, *Response, error) {
u := fmt.Sprintf("enterprise/stats/all")
u := "enterprise/stats/all"
req, err := s.client.NewRequest("GET", u, nil)
if err != nil {
return nil, nil, err
Expand Down
2 changes: 1 addition & 1 deletion github/codespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type ListCodespacesOptions struct {
//
// GitHub API docs: https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-for-the-authenticated-user
func (s *CodespacesService) List(ctx context.Context, opts *ListCodespacesOptions) (*ListCodespaces, *Response, error) {
u := fmt.Sprint("user/codespaces")
u := "user/codespaces"
u, err := addOptions(u, opts)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit bed40d1

Please sign in to comment.