mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
code review
This commit is contained in:
parent
57a7f6bcd7
commit
b685af177e
1 changed files with 3 additions and 6 deletions
|
@ -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 a new issue