Skip to content

Commit 63794eb

Browse files
fix(*): fix missing error checks caught by ineffassign
1 parent 1e64709 commit 63794eb

5 files changed

Lines changed: 20 additions & 0 deletions

File tree

cmd/limits.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ func LimitsList(appID string) error {
2020

2121
config, err := config.List(c, appID)
2222

23+
if err != nil {
24+
return err
25+
}
26+
2327
fmt.Printf("=== %s Limits\n\n", appID)
2428

2529
fmt.Println("--- Memory")

cmd/registry.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ func RegistryList(appID string) error {
2020

2121
config, err := config.List(c, appID)
2222

23+
if err != nil {
24+
return err
25+
}
26+
2327
fmt.Printf("=== %s Registry\n", appID)
2428

2529
registryMap := make(map[string]string)

cmd/releases.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ func ReleasesList(appID string, results int) error {
2222

2323
releases, count, err := releases.List(c, appID, results)
2424

25+
if err != nil {
26+
return err
27+
}
28+
2529
fmt.Printf("=== %s Releases%s", appID, limitCount(len(releases), count))
2630

2731
w := new(tabwriter.Writer)

cmd/tags.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ func TagsList(appID string) error {
2020

2121
config, err := config.List(c, appID)
2222

23+
if err != nil {
24+
return err
25+
}
26+
2327
fmt.Printf("=== %s Tags\n", appID)
2428

2529
tagMap := make(map[string]string)

controller/client/client_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ func TestLoadSave(t *testing.T) {
8686

8787
client, err = New()
8888

89+
if err != nil {
90+
t.Fatal(err)
91+
}
92+
8993
expectedB = true
9094
if client.SSLVerify != expectedB {
9195
t.Errorf("Expected %t, Got %t", expectedB, client.SSLVerify)

0 commit comments

Comments
 (0)