From 9f2b02d98eb0ef83342528e506fd2afbac94ddfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Cruz?= Date: Fri, 24 May 2013 23:10:39 +0100 Subject: [PATCH] I'm dumb. --- lib/core/resolvers/GitResolver.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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) {