Skip to content

Commit

Permalink
Merge pull request #38 from testwill/string
Browse files Browse the repository at this point in the history
chore: use xx.String() instead of string(xxxBytes())
  • Loading branch information
cch123 authored Aug 2, 2023
2 parents da3bd33 + c2dfcaa commit 2bc2add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func ConvertPretty(sql string) (dsl string, table string, err error) {
return "", table, err
}

return string(prettifiedDSLBytes.Bytes()), table, err
return prettifiedDSLBytes.String(), table, err
}

// Convert will transform sql to elasticsearch dsl string
Expand Down

0 comments on commit 2bc2add

Please sign in to comment.