From 4873143697c3b86e22193c18e03fd445f005611a Mon Sep 17 00:00:00 2001 From: johnnyman727 Date: Wed, 17 Feb 2016 11:19:14 -0800 Subject: [PATCH] Eliminates misuse of connection.exec API --- lib/tessel/name.js | 2 +- lib/tessel/provision.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tessel/name.js b/lib/tessel/name.js index a728d3a9..df7bf775 100644 --- a/lib/tessel/name.js +++ b/lib/tessel/name.js @@ -41,7 +41,7 @@ Tessel.prototype.setName = function(name) { }) .then(() => { // Write the new name to the kernel hostname as well (so it reports the proper name in the terminal) - return this.connection.exec(commands.openStdinToFile('/proc/sys/kernel/hostname'), (err, remoteProc) => { + this.connection.exec(commands.openStdinToFile('/proc/sys/kernel/hostname'), (err, remoteProc) => { if (err) { return reject(err); } else { diff --git a/lib/tessel/provision.js b/lib/tessel/provision.js index c98cdb5c..3eca945d 100644 --- a/lib/tessel/provision.js +++ b/lib/tessel/provision.js @@ -195,7 +195,7 @@ function checkIfKeyInFile(tessel, authFile, pubKey) { function copyKey(tessel, authFile, pubKey) { return new Promise(function(resolve, reject) { // Open up stdin to the authorized_keys file - return tessel.connection.exec(commands.appendStdinToFile(authFile), (err, remoteProcess) => { + tessel.connection.exec(commands.appendStdinToFile(authFile), (err, remoteProcess) => { if (err) { return reject(err); }