diff --git a/src/main/java/io/getunleash/DefaultUnleash.java b/src/main/java/io/getunleash/DefaultUnleash.java index c4f5ef0cf..fafdeb97a 100644 --- a/src/main/java/io/getunleash/DefaultUnleash.java +++ b/src/main/java/io/getunleash/DefaultUnleash.java @@ -197,7 +197,7 @@ private Context adapt(UnleashContext context) { return mapped; } - private Variant adaptVariant(VariantDef variant, Variant defaultValue) { + private Variant adapt(VariantDef variant, Variant defaultValue) { if (variant == null) { return defaultValue; } @@ -262,7 +262,7 @@ public Variant getVariant(String toggleName, UnleashContext context, Variant def Context adaptedContext = adapt(enhancedContext); Variant variant = - adaptVariant( + adapt( this.unleashEngine.getVariant(toggleName, adaptedContext), defaultValue);