Skip to content

Commit

Permalink
fix getActionFlag parseBoolean
Browse files Browse the repository at this point in the history
Signed-off-by: binbin0325 <[email protected]>
  • Loading branch information
binbin0325 committed Dec 9, 2022
1 parent 6932f1a commit 34b610f
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 34b610f

Please sign in to comment.