From 5b3b19e1280ac879567f9299639f60e5b1dd0c14 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 17 Nov 2017 14:54:21 -0500 Subject: work on the frontend a bit more --- textproto/io.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'textproto') diff --git a/textproto/io.go b/textproto/io.go index f31f950..8350021 100644 --- a/textproto/io.go +++ b/textproto/io.go @@ -138,11 +138,11 @@ func (cbw *CatBlobWriter) WriteLine(a ...interface{}) error { return err } -func (cbw *CatBlobWriter) WriteBlob(sha1 string, data []byte) error { +func (cbw *CatBlobWriter) WriteBlob(sha1 string, data string) error { err := cbw.WriteLine(sha1, "blob", len(data)) if err != nil { return err } - _, err = cbw.w.Write(data) + _, err = io.WriteString(cbw.w, data) return err } -- cgit v1.2.3