From 288e6acd247cf223c5d29a7ae1b989272bd5e0d2 Mon Sep 17 00:00:00 2001 From: Icebob Date: Wed, 14 Aug 2019 17:44:49 +0200 Subject: [PATCH] fix: Add missing `return` statement (#1911) --- packages/serialport/test-manual/many-writes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/serialport/test-manual/many-writes.js b/packages/serialport/test-manual/many-writes.js index f2cd87ab3..dd1a17df8 100644 --- a/packages/serialport/test-manual/many-writes.js +++ b/packages/serialport/test-manual/many-writes.js @@ -66,7 +66,7 @@ function writeOneCommandAtATime(port) { async function writeAndDrain(port) { const command = commands.pop() if (!command) { - port + return port } const commandNumber = commandCount - commands.length; return new Promise((resolve, reject) => {