From 947cee8954f7767806d7063fe7188b4c53eb2cba Mon Sep 17 00:00:00 2001 From: Nadia Mayor Date: Mon, 8 Jan 2024 14:44:26 -0300 Subject: [PATCH] Pr suggestion --- .../main/java/io/split/integrations/IntegrationsConfig.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/main/java/io/split/integrations/IntegrationsConfig.java b/client/src/main/java/io/split/integrations/IntegrationsConfig.java index 8e512bdd..1a0fa484 100644 --- a/client/src/main/java/io/split/integrations/IntegrationsConfig.java +++ b/client/src/main/java/io/split/integrations/IntegrationsConfig.java @@ -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) {