Skip to content

Commit

Permalink
Update cmd/list.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tomoki Sugiura <[email protected]>
  • Loading branch information
yokaze and chez-shanpu authored Oct 16, 2024
1 parent 0e43978 commit 31822e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ func runList(ctx context.Context, w io.Writer, name string) error {
case OutputSimple:
tw := tabwriter.NewWriter(w, 0, 1, 1, ' ', 0)
if !rootOptions.noHeaders {
_, err := tw.Write([]byte("DIRECTION\tKIND\tNAMESPACE\tNAME\n"))
if err != nil {
if _, err := tw.Write([]byte("DIRECTION\tKIND\tNAMESPACE\tNAME\n")); err != nil {
return err
}
}
Expand Down

0 comments on commit 31822e4

Please sign in to comment.