Replace a zero-length, non-nil slice with a nil slice (#299)

* Replace a zero-length, non-nil slice with a nil slice

* Update codelingo.yaml
This commit is contained in:
leilaes
2019-05-16 12:19:08 +12:00
committed by Adrian Gallagher
parent 07216a4422
commit cdab89a58a
26 changed files with 90 additions and 99 deletions

View File

@@ -715,7 +715,7 @@ func TestExtractPort(t *testing.T) {
func TestOutputCSV(t *testing.T) {
path := "../testdata/dump"
data := [][]string{}
var data [][]string
rowOne := []string{"Appended", "to", "two", "dimensional", "array"}
rowTwo := []string{"Appended", "to", "two", "dimensional", "array", "two"}
data = append(data, rowOne, rowTwo)