Skip to content

Commit

Permalink
Revert null values to return <nil>
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu committed Jul 1, 2024
1 parent 873107f commit 4546259
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,7 @@ func displayCSVRow(displayRow *proto.ExecuteResponse, columns []string) {
return false
})
}
if val == nil {
res[columnName] = ""
} else {
res[columnName] = fmt.Sprintf("%v", val)
}
res[columnName] = fmt.Sprintf("%v", val)
}

// Prepare CSV writer
Expand Down

0 comments on commit 4546259

Please sign in to comment.