Skip to content

Commit

Permalink
chore: rename adapt context method
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Nov 27, 2024
1 parent 8517b43 commit 4ba1c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/getunleash/DefaultUnleash.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 4ba1c45

Please sign in to comment.