mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 17:02:27 +02:00
code review
This commit is contained in:
parent
57a7f6bcd7
commit
b685af177e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user