We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9226ed8 commit 85f095cCopy full SHA for 85f095c
packages/tsurlfilter/src/filterlist/rule-storage.ts
@@ -89,14 +89,17 @@ export class RuleStorage {
89
90
const list = this.listsMap.get(listId);
91
if (!list) {
92
- // List doesn't exist
+ // List doesn't exist.
93
+ //
94
+ // TODO(ameshkov): Consider throwing an error here.
95
return null;
96
}
97
98
const ruleText = list.retrieveRuleText(ruleIdx);
99
if (!ruleText) {
- list.retrieveRuleText(ruleIdx);
-
100
+ // The rule could not be found.
101
102
103
104
105
0 commit comments