Skip to content

Commit

Permalink
fix: Add missing return statement (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob authored and reconbot committed Aug 14, 2019
1 parent 714e438 commit 288e6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serialport/test-manual/many-writes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 288e6ac

Please sign in to comment.