diff --git a/lib/core/resolvers/GitResolver.js b/lib/core/resolvers/GitResolver.js index c1d57400..15aa23ac 100644 --- a/lib/core/resolvers/GitResolver.js +++ b/lib/core/resolvers/GitResolver.js @@ -12,13 +12,11 @@ var which = require('which'); var hasGit; // Check if git is installed -if (hasGit == null) { - try { - which.sync('git'); - hasGit = true; - } catch (ex) { - hasGit = false; - } +try { + which.sync('git'); + hasGit = true; +} catch (ex) { + hasGit = false; } function GitResolver(source, options) {