Skip to content

Commit

Permalink
return errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker committed Jun 14, 2019
1 parent aa91de4 commit d475f43
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/jade/jade.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ type WriterAsBuffer struct {
io.Writer
}
func (w *WriterAsBuffer) WriteString(s string) {
w.Write([]byte(s))
func (w *WriterAsBuffer) WriteString(s string) (n int, err error) {
n, err = w.Write([]byte(s))
return
}
func (w *WriterAsBuffer) WriteByte(b byte) {
w.Write([]byte{b})
func (w *WriterAsBuffer) WriteByte(b byte) (err error) {
_, err = w.Write([]byte{b})
return
}
type stringer interface {
Expand Down

0 comments on commit d475f43

Please sign in to comment.