Skip to content

Commit 4de15a3

Browse files
authored
Merge pull request #182 from MOZGIII/patch-1
Used writeTwoBytes in Stream.WriteEmptyArray
2 parents abe3c40 + 14b28b2 commit 4de15a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

feature_stream.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ func (stream *Stream) WriteArrayStart() {
283283

284284
// WriteEmptyArray write []
285285
func (stream *Stream) WriteEmptyArray() {
286-
stream.writeByte('[')
287-
stream.writeByte(']')
286+
stream.writeTwoBytes('[', ']')
288287
}
289288

290289
// WriteArrayEnd write ] with possible indention

0 commit comments

Comments
 (0)