@@ -116,7 +116,7 @@ func repoCreate(client *http.Client, hostname string, input repoCreateInput, tem
116116 return nil , err
117117 }
118118 var responseV3 api.RepositoryV3
119- err := apiClient .REST (hostname , "POST" , fmt . Sprintf ( "user/repos" ) , body , & responseV3 )
119+ err := apiClient .REST (hostname , "POST" , "user/repos" , body , & responseV3 )
120120 if err != nil {
121121 return nil , err
122122 }
@@ -166,7 +166,7 @@ func resolveOrganizationTeam(client *api.Client, hostname, orgName, teamSlug str
166166// ListGitIgnoreTemplates uses API v3 here because gitignore template isn't supported by GraphQL yet.
167167func ListGitIgnoreTemplates (client * api.Client , hostname string ) ([]string , error ) {
168168 var gitIgnoreTemplates []string
169- err := client .REST (hostname , "GET" , fmt . Sprintf ( "gitignore/templates" ) , nil , & gitIgnoreTemplates )
169+ err := client .REST (hostname , "GET" , "gitignore/templates" , nil , & gitIgnoreTemplates )
170170 if err != nil {
171171 return []string {}, err
172172 }
@@ -176,7 +176,7 @@ func ListGitIgnoreTemplates(client *api.Client, hostname string) ([]string, erro
176176// ListLicenseTemplates uses API v3 here because license template isn't supported by GraphQL yet.
177177func ListLicenseTemplates (client * api.Client , hostname string ) ([]api.License , error ) {
178178 var licenseTemplates []api.License
179- err := client .REST (hostname , "GET" , fmt . Sprintf ( "licenses" ) , nil , & licenseTemplates )
179+ err := client .REST (hostname , "GET" , "licenses" , nil , & licenseTemplates )
180180 if err != nil {
181181 return nil , err
182182 }
0 commit comments