Skip to content

Commit

Permalink
fix getActionFlag parseBoolean
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin0325 committed Dec 8, 2022
1 parent 6932f1a commit 112556a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static Boolean getActionFlag(EnhancerModel enhancerModel, String flagKey,
String value = getActionFlag(enhancerModel, flagKey);
if (value == null) { return defaultValue; }
try {
return Boolean.parseBoolean(flagKey);
return Boolean.parseBoolean(value);
} catch (Exception ex) {
return defaultValue;
}
Expand Down

0 comments on commit 112556a

Please sign in to comment.