fix gosimple

This commit is contained in:
Eyal Post 2017-05-17 21:27:32 +03:00
parent ee1d8bc30e
commit e32a18203b
1 changed files with 1 additions and 2 deletions

View File

@ -343,9 +343,8 @@ func (output *BeegoOutput) IsServerError() bool {
}
func stringsToJSON(str string) string {
rs := []rune(str)
var jsons bytes.Buffer
for _, r := range rs {
for _, r := range str {
rint := int(r)
if rint < 128 {
jsons.WriteRune(r)