Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoelkemp committed Mar 17, 2014
1 parent d97c263 commit b71b38b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var gux = require('node-unique-extensions'),
fs = require('fs'),
q = require('q'),
npmh = require('./helpers/NpmHelper'),
GruntHelper = require('./helpers/GruntHelper');
GruntHelper = require('./helpers/GruntHelper'),
utils = require('./helpers/Utils');

function Ya () {
this.directory = '.';
Expand Down Expand Up @@ -75,10 +75,7 @@ Ya.prototype.isExtensionSupported = function (ext) {
var deferred = q.defer();

if (ext) {

fs.exists(this.getSettingsFilepath(ext), function (exists) {
deferred.resolve(exists);
});
return utils.exists(this.getSettingsFilepath(ext));

} else {
deferred.resolve(false);
Expand Down

0 comments on commit b71b38b

Please sign in to comment.