From ddb12c0192f85f3e9098fe0f852c71f9d89caac5 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 22 Apr 2019 18:10:02 +0100 Subject: [PATCH] [Javascript] Remove newly introduced trailing whitespace in flatbuffer.js (#5300) * Remove newly introduced trailing whitespace in flatbuffer.js The newly introduced clear function has some trailing white space in an otherwise whitespace clean file. Remove it. * Remove spurious new line in the BytesBuffer construction Another spurious white space introduced by the clear() PR. --- js/flatbuffers.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/flatbuffers.js b/js/flatbuffers.js index 0c970bd8b..416085204 100644 --- a/js/flatbuffers.js +++ b/js/flatbuffers.js @@ -829,7 +829,6 @@ flatbuffers.ByteBuffer = function(bytes) { * @private */ this.position_ = 0; - }; /** @@ -842,7 +841,7 @@ flatbuffers.ByteBuffer.allocate = function(byte_size) { return new flatbuffers.ByteBuffer(new Uint8Array(byte_size)); }; -flatbuffers.ByteBuffer.prototype.clear = function() { +flatbuffers.ByteBuffer.prototype.clear = function() { this.position_ = 0; };