From 95f34ba4ebb78c1ac3ca64f8fb3610b04f3943f0 Mon Sep 17 00:00:00 2001 From: "stefan.poeter@cloud-automation.de" Date: Sun, 27 Nov 2016 00:25:40 +0100 Subject: [PATCH] Forgot code style. --- test/heap-test-coils.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/heap-test-coils.js b/test/heap-test-coils.js index 490b97e..18d30c8 100644 --- a/test/heap-test-coils.js +++ b/test/heap-test-coils.js @@ -12,21 +12,17 @@ const client = modbus.client.tcp.complete({ client.connect() client.on('connect', function () { - - let p = Promise.resolve() + let p = Promise.resolve() for (let i = 1; i < 1e5; i++) { p = p.then(client.readCoils(0, 13)) } p.then(function () { - - let usedHeapSize = Math.floor(v8.getHeapStatistics().used_heap_size / 1e6); + let usedHeapSize = Math.floor(v8.getHeapStatistics().used_heap_size / 1e6) console.log('Heap:', usedHeapSize, 'MB') - - client.close() + client.close() }) - })