Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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