From b4a7344ca328395efd6614386915879f6b57aebc Mon Sep 17 00:00:00 2001 From: "juanp.garcia" Date: Mon, 4 Jun 2018 11:20:10 -0300 Subject: [PATCH] fixed lint issues Co-authored-by: Juan Pablo Garcia Ripa Co-authored-by: Juan Pablo Garcia Ripa --- src/git.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git.js b/src/git.js index 828f570..e2851ed 100644 --- a/src/git.js +++ b/src/git.js @@ -86,10 +86,10 @@ function removeSection(section) { * @returns {string} Relative path to "$GIT_DIR/" */ function gitPath(path) { - let version = silentRun('git --version').stdout.trim(); - let [,mayor,minor,patch] = /.*(\d)\.(\d*)\.(\d*)/gm.exec(version); + const version = silentRun('git --version').stdout.trim(); + const [, mayor, minor] = /.*(\d)\.(\d*)\.(\d*)/gm.exec(version); - if (mayor >= 2 && minor >= 13){ + if (mayor >= 2 && minor >= 13) { return silentRun(` git rev-parse --git-path ${path}`).stdout.trim(); }