From 3f9234c736c324079686884c514cf5256573297a Mon Sep 17 00:00:00 2001 From: Tim Ryan Date: Wed, 19 Oct 2016 13:53:04 -0700 Subject: [PATCH] Addresses review feedback. --- lib/install/rust.js | 2 +- lib/tessel/deployment/rust.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install/rust.js b/lib/install/rust.js index 9c9b9c3a..0cc3c19b 100644 --- a/lib/install/rust.js +++ b/lib/install/rust.js @@ -139,7 +139,7 @@ module.exports.toolchainPath = () => { var values = fs.readdirSync(sdkPlatformPath); for (var i = 0; i < values.length; i++) { - if (values[i].match(/^toolchain\-mipsel/)) { + if (values[i].startsWith('toolchain-mipsel')) { return resolve(path.join(sdkPlatformPath, values[i])); } } diff --git a/lib/tessel/deployment/rust.js b/lib/tessel/deployment/rust.js index 2f9a7d00..7d25e147 100644 --- a/lib/tessel/deployment/rust.js +++ b/lib/tessel/deployment/rust.js @@ -114,7 +114,7 @@ exportables.remoteRustCompilation = (opts) => { var options = { host: destination.hostname, port: destination.port, - path: '/rust-compile?target=' + querystring.escape(opts.resolvedEntryPoint), + path: `/rust-compile?target=${querystring.escape(opts.resolvedEntryPoint)}`, method: 'POST', headers: { 'Content-Type': 'application/octet-stream',