Skip to content

Commit

Permalink
Fix staticcheck failures (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopjb committed Jan 18, 2021
1 parent 212e1fd commit ab92408
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions interoperator/internal/renderer/gotemplate/renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ func Test_gotemplateRenderer_Render(t *testing.T) {
t.Errorf("gotemplateRenderer.Render() error = %v, wantErr %v", err, tt.wantErr)
return
}
if _, ok := got.(renderer.Output); (got != nil) != tt.want || ok != tt.want {
t.Errorf("gotemplateRenderer.Render() = %v, want %v", got, tt.want)
return
}
if tt.want {
out, err := got.FileContent("main")
if err != nil {
Expand Down
5 changes: 1 addition & 4 deletions interoperator/pkg/cluster/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,11 @@ func TestNew(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := New(tt.args.kubeConfig, tt.args.scheme, tt.args.mapper)
_, err := New(tt.args.kubeConfig, tt.args.scheme, tt.args.mapper)
if (err != nil) != tt.wantErr {
t.Errorf("New() error = %v, wantErr %v", err, tt.wantErr)
return
}
if _, ok := got.(ClusterRegistry); ok != tt.want {
t.Errorf("New() = %v, want ClusterRegistry", got)
}
})
}
}
Expand Down

0 comments on commit ab92408

Please sign in to comment.