Skip to content

Commit

Permalink
remove lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek-kumar09 <abhimait1909@gmail.com>
  • Loading branch information
Abhishek-kumar09 committed Sep 6, 2021
1 parent 01bfa72 commit 42a7937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/blockdevice/blockdevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func createTreeByNode(k *client.K8sClient, bdNames []string) error {
rows = append(rows, metav1.TableRow{Cells: []interface{}{"", "", "", "", "", "", ""}})
}
if len(rows) == 0 {
util.HandleEmptyTableError("Block Device", k.Ns, "")
return util.HandleEmptyTableError("Block Device", k.Ns, "")
} else {
// Show the output using cli-runtime
util.TablePrinter(util.BDTreeListColumnDefinations, rows, printers.PrintOptions{Wide: true})
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestHandleEmptyTableError(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
HandleEmptyTableError(tt.args.resource, tt.args.ns, tt.args.casType)
_ = HandleEmptyTableError(tt.args.resource, tt.args.ns, tt.args.casType)
})
}
}

0 comments on commit 42a7937

Please sign in to comment.