Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaresiak committed Nov 22, 2024
1 parent bf594f0 commit 258f999
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public class ContentBlockerRulesManager: CompiledRuleListsSource {

if !self.lookupCompiledRules() {
if let lastCompiledRules = lastCompiledRulesStore?.rules, !lastCompiledRules.isEmpty {
if(self.fetchLastCompiledRules(with: lastCompiledRules)) {
if self.fetchLastCompiledRules(with: lastCompiledRules) {
self.errorReporting?.fire(.contentBlockingFetchLRCSucceeded)
} else {
self.errorReporting?.fire(.contentBlockingNoMatchInLRC)
Expand Down Expand Up @@ -282,7 +282,7 @@ public class ContentBlockerRulesManager: CompiledRuleListsSource {
mutex.wait()

let rulesFound = initialCompilationTask.getFetchedRules()

if let rules = rulesFound {
applyRules(rules)
} else {
Expand All @@ -293,7 +293,7 @@ public class ContentBlockerRulesManager: CompiledRuleListsSource {

// No matter if rules were found or not, we need to schedule recompilation, after all
scheduleCompilation()

return rulesFound != nil
}

Expand Down Expand Up @@ -389,8 +389,8 @@ public class ContentBlockerRulesManager: CompiledRuleListsSource {
}

// if task is main tds task, extract time and iteration count from the result and fire the pixel
//can result be a struct? can we add fields to compliatiotask instead?
//can we sen dpixels from compialtion task?
// can result be a struct? can we add fields to compliatiotask instead?
// can we sen dpixels from compialtion task?
changes[task.rulesList.name] = diff
return rules
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class ContentBlockerRulesManagerLoadingTests: ContentBlockerRulesManagerTests {

let errorExp = expectation(description: "No error reported")
errorExp.isInverted = true

let lookupAndFetchExp = expectation(description: "Look and Fetch rules failed")
let compilationTimeExp = expectation(description: "Compilation Time reported")
let errorHandler = EventMapping<ContentBlockerDebugEvents> { event, _, params, _ in
Expand Down Expand Up @@ -547,7 +547,7 @@ class ContentBlockerRulesManagerLoadingTests: ContentBlockerRulesManagerTests {

let errorExp = expectation(description: "Error reported")
errorExp.expectedFulfillmentCount = 5

let lookupAndFetchExp = expectation(description: "Look and Fetch rules failed")

var errorEvents = [ContentBlockerDebugEvents.Component]()
Expand Down

0 comments on commit 258f999

Please sign in to comment.