code review

This commit is contained in:
gorhill 2015-08-25 15:43:32 -04:00
parent 57a7f6bcd7
commit b685af177e

View file

@ -441,12 +441,9 @@ var getRepoMetadata = function(callback) {
var line, matches;
for ( var i = 0; i < lines.length; i++ ) {
line = lines[i];
matches = line.match(/^([0-9a-f]+) (.+)$/);
if ( matches === null ) {
continue;
}
if ( listMap.hasOwnProperty(matches[2]) ) {
continue;
matches = line.match(/^[0-9a-f]+ (.+)$/);
if ( matches === null || listMap.hasOwnProperty(matches[1]) ) {
continue;
}
out.push(line);
}