Skip to content

Commit

Permalink
aws: Simplify WriteAtBuffers return (aws#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Jan 26, 2017
1 parent ae294aa commit 5f8c776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) {
func (b *WriteAtBuffer) Bytes() []byte {
b.m.Lock()
defer b.m.Unlock()
return b.buf[:len(b.buf):len(b.buf)]
return b.buf
}

0 comments on commit 5f8c776

Please sign in to comment.