Skip to content

Commit

Permalink
fix unassigned error on client-go test
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Ojea committed Nov 17, 2021
1 parent d126b14 commit 01a0fba
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions staging/src/k8s.io/client-go/tools/clientcmd/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,9 @@ func Example_noMergingOnExplicitPaths() {
}

mergedConfig, err := loadingRules.Load()

if err != nil {
fmt.Printf("Unexpected error: %v", err)
}
json, err := runtime.Encode(clientcmdlatest.Codec, mergedConfig)
if err != nil {
fmt.Printf("Unexpected error: %v", err)
Expand Down Expand Up @@ -715,7 +717,9 @@ func Example_mergingSomeWithConflict() {
}

mergedConfig, err := loadingRules.Load()

if err != nil {
fmt.Printf("Unexpected error: %v", err)
}
json, err := runtime.Encode(clientcmdlatest.Codec, mergedConfig)
if err != nil {
fmt.Printf("Unexpected error: %v", err)
Expand Down Expand Up @@ -774,7 +778,9 @@ func Example_mergingEverythingNoConflicts() {
}

mergedConfig, err := loadingRules.Load()

if err != nil {
fmt.Printf("Unexpected error: %v", err)
}
json, err := runtime.Encode(clientcmdlatest.Codec, mergedConfig)
if err != nil {
fmt.Printf("Unexpected error: %v", err)
Expand Down

0 comments on commit 01a0fba

Please sign in to comment.