Misc minor cleanup

This commit is contained in:
Bryan Ashby 2016-08-03 19:38:06 -06:00
parent c93638a5e6
commit 3d098e927a
1 changed files with 8 additions and 9 deletions

View File

@ -1,19 +1,18 @@
/* jslint node: true */ /* jslint node: true */
'use strict'; 'use strict';
var fs = require('fs'); // ENiGMA½
var paths = require('path');
var assert = require('assert');
var iconv = require('iconv-lite');
var conf = require('./config.js'); var conf = require('./config.js');
var miscUtil = require('./misc_util.js'); var miscUtil = require('./misc_util.js');
var binary = require('binary');
var events = require('events');
var util = require('util');
var ansi = require('./ansi_term.js'); var ansi = require('./ansi_term.js');
var aep = require('./ansi_escape_parser.js'); var aep = require('./ansi_escape_parser.js');
var sauce = require('./sauce.js'); var sauce = require('./sauce.js');
// deps
var fs = require('fs');
var paths = require('path');
var assert = require('assert');
var iconv = require('iconv-lite');
var _ = require('lodash'); var _ = require('lodash');
exports.getArt = getArt; exports.getArt = getArt;
@ -190,7 +189,7 @@ function getArt(name, options, cb) {
} }
return true; return true;
}); });
if(filtered.length > 0) { if(filtered.length > 0) {
// //
// We should now have: // We should now have:
@ -207,7 +206,7 @@ function getArt(name, options, cb) {
getArtFromPath(readPath, options, cb); getArtFromPath(readPath, options, cb);
} else { } else {
cb(new Error('No matching art for supplied criteria')); return cb(new Error(`No matching art for supplied criteria: ${name}`));
} }
}); });
} }