Skip to content

Commit

Permalink
fix: disable the outputs sections when no outputs are available (#41)
Browse files Browse the repository at this point in the history
* fix: disable the outputs sections when no outputs are available

* fix: remove extra print
  • Loading branch information
opp-svega committed Jul 18, 2023
1 parent 5d60441 commit c091e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (t TableWriter) Write(writer io.Writer) error {
table.Render()

// Disable the Output Summary if there are no outputs to display
if len(t.outputChanges) > 0 {
if len(t.outputChanges["add"]) > 0 || len(t.outputChanges["delete"]) > 0 || len(t.outputChanges["update"]) > 0 {
tableString = make([][]string, 0, 4)
for change, changedOutputs := range t.outputChanges {
for _, changedOutput := range changedOutputs {
Expand Down

0 comments on commit c091e4e

Please sign in to comment.