Skip to content

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Pablo Garcia Ripa <juanp.garcia@bbva.com>
Co-authored-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
  • Loading branch information
juanp.garcia and Sarabadu committed Jun 5, 2018
1 parent 98c66b8 commit b4a7344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ function removeSection(section) {
* @returns {string} Relative path to "$GIT_DIR/<path>"
*/
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();
}

Expand Down

0 comments on commit b4a7344

Please sign in to comment.