Skip to content

Commit

Permalink
Dependencies: removes sprintf-js (use template strings)
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Apr 14, 2016
1 parent d74a152 commit d13de24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions lib/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var util = require('util');
var async = require('async');
var colors = require('colors');
var inquirer = require('inquirer');
var sprintf = require('sprintf-js').sprintf;
var semver = require('semver');

// Internal
Expand Down Expand Up @@ -104,7 +103,7 @@ Tessel.list = function(opts) {
}

// Print out details...
logs.basic(sprintf('\t%s\t%s\t%s', tessel.connection.connectionType, tessel.name, note));
logs.basic(`\t${tessel.connection.connectionType}\t${tessel.name}\t${note}`);
});

// Called after CTRL+C or timeout
Expand Down Expand Up @@ -227,12 +226,7 @@ Tessel.get = function(opts) {
var isLAN = !!tessel.lanConnection;
var isAuthorized = isLAN && tessel.lanConnection.authorized;
var authorization = isAuthorized ? '' : '(not authorized)';
var display = sprintf(
'\t%s\t%s\t%s',
tessel.connection.connectionType,
tessel.name,
authorization
);
var display = `\t${tessel.connection.connectionType}\t${tessel.name}\t${authorization}`;

// Map displayed name to tessel index
map[display] = i;
Expand Down Expand Up @@ -301,7 +295,7 @@ Tessel.get = function(opts) {
// The Tessels that we won't be using should have their connections closed
var connectionsToClose = tessels;
if (tessel) {
logs.info(sprintf('Connected to %s.', tessel.name));
logs.info(`Connected to ${tessel.name}.`);
connectionsToClose.splice(tessels.indexOf(tessel), 1);
controller.closeTesselConnections(connectionsToClose)
.then(function() {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"request": "^2.60.0",
"semver": "^5.1.0",
"shell-escape": "^0.2.0",
"sprintf-js": "^1.0.2",
"ssh2": "^0.4.2",
"sshpk": "^1.6.0",
"stream-to-buffer": "^0.1.0",
Expand Down

1 comment on commit d13de24

@johnnyman727
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.