Skip to content

Commit

Permalink
Refactoring mklink.ToUTF8() function
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegel-im-spiegel committed Dec 4, 2017
1 parent c84ae27 commit f8dccb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions charencode.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ func ToUTF8(body []byte) string {
default:
return ""
}
r := transform.NewReader(bytes.NewReader(body), trans)
buf := new(bytes.Buffer)
io.Copy(buf, r)
io.Copy(buf, transform.NewReader(bytes.NewReader(body), trans))
return buf.String()
}
Binary file modified dependency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f8dccb8

Please sign in to comment.