Explorar el Código

Used writeTwoBytes in Stream.WriteEmptyArray

MOZGIII hace 8 años
padre
commit
14b28b2226
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      feature_stream.go

+ 1 - 2
feature_stream.go

@@ -283,8 +283,7 @@ func (stream *Stream) WriteArrayStart() {
 
 // WriteEmptyArray write []
 func (stream *Stream) WriteEmptyArray() {
-	stream.writeByte('[')
-	stream.writeByte(']')
+	stream.writeTwoBytes('[', ']')
 }
 
 // WriteArrayEnd write ] with possible indention