Skip to content

Commit

Permalink
console: prefer nil slices over zero-length slices (ethereum#19076)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthalp-zz authored and kiku-jw committed Mar 29, 2019
1 parent 3c894f3 commit f5cdb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (c *Console) clearHistory() {
// consoleOutput is an override for the console.log and console.error methods to
// stream the output into the configured output stream instead of stdout.
func (c *Console) consoleOutput(call otto.FunctionCall) otto.Value {
output := []string{}
var output []string
for _, argument := range call.ArgumentList {
output = append(output, fmt.Sprintf("%v", argument))
}
Expand Down

0 comments on commit f5cdb42

Please sign in to comment.