Skip to content

Commit

Permalink
Refactor and simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mpchadwick committed Apr 13, 2019
1 parent 6a92b14 commit 286e19f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ func (p LineProcessor) ProcessLine(s string) string {
continue
}

switch v := e.(type) {
case *sqlparser.SQLVal:
switch v.Type {
default:
v.Val = []byte(p.Provider.Get(dataType))
}
}
e.(*sqlparser.SQLVal).Val = []byte(p.Provider.Get(dataType))

}
}
return sqlparser.String(stmt) + ";\n"
Expand Down

0 comments on commit 286e19f

Please sign in to comment.