Skip to content

Commit

Permalink
gofmt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincabbage committed Sep 23, 2019
1 parent d3fff54 commit c0a0258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chiv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ func TestArchiveRows(t *testing.T) {
require.NoError(t, err)
require.True(t, test.formatter.closed)

for i, _ := range test.rows.scan {
for j, _ := range test.rows.scan[i] {
for i := range test.rows.scan {
for j := range test.rows.scan[i] {
require.True(t, i < len(test.formatter.written) && j < len(test.formatter.written[i]), "formatter written record count")
expected := test.rows.scan[i][j]
actual := test.formatter.written[i][j]
Expand Down Expand Up @@ -186,7 +186,7 @@ func (r *rows) Scan(c ...interface{}) error {
}

s := r.scan[r.scanNdx]
for i, _ := range s {
for i := range s {
if v, ok := c[i].(*sql.RawBytes); ok {
*v = sql.RawBytes(s[i])
}
Expand Down

0 comments on commit c0a0258

Please sign in to comment.