Task Attachments #104
|
@ -73,9 +73,7 @@ func (t *testfile) Read(p []byte) (n int, err error) {
|
|||
if t.done {
|
||||
return 0, io.EOF
|
||||
}
|
||||
for i, b := range t.content {
|
||||
p[i] = b
|
||||
}
|
||||
copy(p, t.content)
|
||||
t.done = true
|
||||
return len(p), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue