Skip to content

Commit 85f095c

Browse files
committed
Added comments
1 parent 9226ed8 commit 85f095c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/tsurlfilter/src/filterlist/rule-storage.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,17 @@ export class RuleStorage {
8989

9090
const list = this.listsMap.get(listId);
9191
if (!list) {
92-
// List doesn't exist
92+
// List doesn't exist.
93+
//
94+
// TODO(ameshkov): Consider throwing an error here.
9395
return null;
9496
}
9597

9698
const ruleText = list.retrieveRuleText(ruleIdx);
9799
if (!ruleText) {
98-
list.retrieveRuleText(ruleIdx);
99-
100+
// The rule could not be found.
101+
//
102+
// TODO(ameshkov): Consider throwing an error here.
100103
return null;
101104
}
102105

0 commit comments

Comments
 (0)