mirror of
https://github.com/jimeh/go-render.git
synced 2026-02-19 11:26:39 +00:00
test(render): improve test coverage
This commit is contained in:
@@ -19,7 +19,7 @@ func (s *Stringer) Render(w io.Writer, v any) error {
|
||||
return ErrCannotRender
|
||||
}
|
||||
|
||||
_, err := fmt.Fprint(w, x.String())
|
||||
_, err := w.Write([]byte(x.String()))
|
||||
if err != nil {
|
||||
return fmt.Errorf("%w: %w", Err, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user