Skip to content

Commit cf733e8

Browse files
author
Mattia Bertorello
committed
Removed comments and rename type1 to libType
1 parent 334377a commit cf733e8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Diff for: builder_client_helpers/examples.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ func ListExamplesPath() string {
3030
}
3131

3232
// ListExamples provides a list of all the builtin examples
33-
func (c *Client) ListExamples(ctx context.Context, path string, maintainer *string, type1 *string) (*http.Response, error) {
34-
req, err := c.NewListExamplesRequest(ctx, path, maintainer, type1)
33+
func (c *Client) ListExamples(ctx context.Context, path string, maintainer *string, libType *string) (*http.Response, error) {
34+
req, err := c.NewListExamplesRequest(ctx, path, maintainer, libType)
3535
if err != nil {
3636
return nil, err
3737
}
3838
return c.Client.Do(ctx, req)
3939
}
4040

4141
// NewListExamplesRequest create the request corresponding to the list action endpoint of the examples resource.
42-
func (c *Client) NewListExamplesRequest(ctx context.Context, path string, maintainer *string, type1 *string) (*http.Request, error) {
42+
func (c *Client) NewListExamplesRequest(ctx context.Context, path string, maintainer *string, libType *string) (*http.Request, error) {
4343
scheme := c.Scheme
4444
if scheme == "" {
4545
scheme = "http"
@@ -49,8 +49,8 @@ func (c *Client) NewListExamplesRequest(ctx context.Context, path string, mainta
4949
if maintainer != nil {
5050
values.Set("maintainer", *maintainer)
5151
}
52-
if type1 != nil {
53-
values.Set("type", *type1)
52+
if libType != nil {
53+
values.Set("type", *libType)
5454
}
5555
u.RawQuery = values.Encode()
5656
req, err := http.NewRequest("GET", u.String(), nil)

Diff for: builder_client_helpers/libraries.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (c *Client) ListLibraries(
4343
}
4444

4545
// NewListLibrariesRequest create the request corresponding to the list action endpoint of the libraries resource.
46-
func (c *Client) NewListLibrariesRequest(ctx context.Context, path string, maintainer *string, type1 *string, withoutType *string) (*http.Request, error) {
46+
func (c *Client) NewListLibrariesRequest(ctx context.Context, path string, maintainer *string, libType *string, withoutType *string) (*http.Request, error) {
4747
scheme := c.Scheme
4848
if scheme == "" {
4949
scheme = "http"
@@ -53,8 +53,8 @@ func (c *Client) NewListLibrariesRequest(ctx context.Context, path string, maint
5353
if maintainer != nil {
5454
values.Set("maintainer", *maintainer)
5555
}
56-
if type1 != nil {
57-
values.Set("type", *type1)
56+
if libType != nil {
57+
values.Set("type", *libType)
5858
}
5959
if withoutType != nil {
6060
values.Set("without_type", *withoutType)

Diff for: commands/commands_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535

3636
// Redirecting stdOut so we can analyze output line by
3737
// line and check with what we want.
38-
var stdOut = os.Stdout // *os.File
38+
var stdOut = os.Stdout
3939

4040
type stdOutRedirect struct {
4141
tempFile *os.File

0 commit comments

Comments
 (0)