Skip to content

Commit

Permalink
refactor: clarify removeparam getter
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto committed Jan 6, 2025
1 parent 9c1e12b commit c8da3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adblocker/src/filters/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ export default class NetworkFilter implements IFilter {
return undefined;
}

return this.optionValue || '';
return this.optionValue;
}

public isCosmeticFilter(): this is CosmeticFilter {
Expand Down Expand Up @@ -1555,7 +1555,7 @@ export default class NetworkFilter implements IFilter {
}

if (this.isRemoveParam()) {
if (this.optionValue !== undefined) {
if (this.removeparam!.length > 0) {
options.push(`removeparam=${this.optionValue}`);
} else {
options.push('removeparam');
Expand Down

0 comments on commit c8da3bb

Please sign in to comment.