Skip to content

Commit 340465b

Browse files
committed
Style corrections
1 parent 9bf228a commit 340465b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ module.exports = function(gitPath) {
6464
var packedRefsFilePath = path.join(gitPath, 'packed-refs');
6565
if (fs.existsSync(packedRefsFilePath)) {
6666
var packedRefsFile = fs.readFileSync(packedRefsFilePath, {encoding: 'utf8'});
67-
var tagLine = packedRefsFile.split('\n').filter(function(l) {
68-
return l.indexOf("refs/tags") > -1 && l.indexOf(result.sha) > -1;
67+
var tagLine = packedRefsFile.split('\n').filter(function(line) {
68+
return line.indexOf("refs/tags") > -1 && line.indexOf(result.sha) > -1;
6969
})[0];
70+
7071
if (tagLine) {
71-
result.tag = tagLine.split('tags/')[1]
72+
result.tag = tagLine.split('tags/')[1];
7273
}
7374
}
7475
}

0 commit comments

Comments
 (0)