Skip to content

Commit

Permalink
add if to optional arg in Sample #478
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed May 23, 2024
1 parent a7efbc5 commit f400a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lphy-base/src/main/java/lphy/base/distribution/Sample.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Map<String, Value> getParams() {
return new TreeMap<>() {{
put(ParameterNames.ArrayParamName, x);
put(ParameterNames.SizeParamName, size);
put(replParamName, replace);
if (replace != null) put(replParamName, replace); // optional
}};
}

Expand Down

0 comments on commit f400a6c

Please sign in to comment.