1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

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);
}