Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 45699ae

Browse files
author
Sam McGeown
committed
Fix ineffectual assignments (goreportcard)
1 parent 531bc0c commit 45699ae

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Code Stream CLI (cs-cli)
44

5-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/vmware/code-stream-cli/release) [![Go Report Card](https://goreportcard.com/badge/github.com/vmware/code-stream-cli)](https://goreportcard.com/report/github.com/vmware/code-stream-cli) ![GitHub issues](https://img.shields.io/github/issues/vmware/code-stream-cli)
5+
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/vmware/code-stream-cli/release) [![Go Report Card](https://goreportcard.com/badge/github.com/vmware/code-stream-cli)](https://goreportcard.com/report/github.com/vmware/code-stream-cli) ![GitHub issues](https://img.shields.io/github/issues/vmware/code-stream-cli) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/vmware/code-stream-cli)
66

77

88
The Code Stream CLI is a command line tool written in Go to interact with the vRealize Automation Code Stream APIs. It is written to help automate Code Stream and provide a simple way to migrate content between Code Stream instances and projects.

cmd/api-func-executions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func createExecution(id string, inputs string, comment string) (*CodeStreamCreat
9797
return nil, err
9898
}
9999
client := resty.New()
100-
queryResponse, err := client.R().
100+
queryResponse, _ := client.R().
101101
SetQueryParams(qParams).
102102
SetHeader("Content-Type", "application/json").
103103
SetBody(executionBytes).

cmd/api-func-shared.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func importYaml(yamlPath, action string) error {
107107
}
108108
yamlPayload := string(yamlBytes)
109109
client := resty.New()
110-
queryResponse, err := client.R().
110+
queryResponse, _ := client.R().
111111
SetQueryParams(qParams).
112112
SetHeader("Content-Type", "application/x-yaml").
113113
SetBody(yamlPayload).

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Examples:
131131
viper.SetConfigType("yaml")
132132
if err := viper.SafeWriteConfig(); err != nil {
133133
if os.IsNotExist(err) {
134-
err = viper.WriteConfig()
134+
viper.WriteConfig()
135135
}
136136
}
137137
},

0 commit comments

Comments
 (0)