8000 Simplify require · protobufjs/bytebuffer.js@a1ec65b · GitHub
[go: up one dir, main page]

Skip to content

Commit a1ec65b

Browse files
committed
Simplify require
No need to use "path" module to require file by relative path
1 parent 0a5d362 commit a1ec65b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
var path = require("path"),
17-
ByteBufferNB = require(path.join(__dirname, "dist", "ByteBufferNB.js")),
18-
ByteBufferAB = require(path.join(__dirname, "dist", "ByteBufferAB.js"));
16+
var ByteBufferNB = require("./dist/ByteBufferNB.js")),
17+
ByteBufferAB = require("./dist/ByteBufferAB.js"));
1918

2019
module.exports = ByteBufferNB;
2120
module.exports.ByteBufferNB = ByteBufferNB; // node Buffer backed

0 commit comments

Comments
 (0)
0