aboutsummaryrefslogtreecommitdiffstats
path: root/core/memory.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-29 22:49:00 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-29 22:49:00 +0200
commitdd4af03ad368cc50dd08912010f5b667bd7569cd (patch)
treedb8a4dbe49e534b2215a74866de5e229a06fc3b0 /core/memory.go
parent5cf20a4edf7803458a1c2ec94e902369bed76f28 (diff)
downloadgo-git-dd4af03ad368cc50dd08912010f5b667bd7569cd.tar.gz
core: MemoryObject.Write, remove SetSize side effect
Diffstat (limited to 'core/memory.go')
-rw-r--r--core/memory.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/memory.go b/core/memory.go
index 8826966..3d8063d 100644
--- a/core/memory.go
+++ b/core/memory.go
@@ -50,7 +50,6 @@ func (o *MemoryObject) Writer() (ObjectWriter, error) {
func (o *MemoryObject) Write(p []byte) (n int, err error) {
o.cont = append(o.cont, p...)
- o.sz = int64(len(o.cont))
return len(p), nil
}