Skip to content

Commit

Permalink
Pr suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
nmayorsplit committed Jan 8, 2024
1 parent f9c7e01 commit 947cee8
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ public Builder() {
}

public Builder impressionsListener(ImpressionListener listener, int queueSize) {
if (queueSize <= 0) {
throw new IllegalArgumentException("An ImpressionListener was provided, but its capacity was non-positive: " + queueSize);
}
_listeners.add(new ImpressionListenerWithMeta(listener, Execution.ASYNC, queueSize));
return this;
return impressionsListener(listener, queueSize, Execution.ASYNC);
}

public Builder impressionsListener(ImpressionListener listener, int queueSize, Execution executionType) {
Expand Down

0 comments on commit 947cee8

Please sign in to comment.