refactoring: reducing code duplication
This commit is contained in:
parent
9218dcf116
commit
cdb6353eb0
Binary file not shown.
|
@ -118,7 +118,7 @@ public class ParseState {
|
|||
*/
|
||||
public void addDefinition(VariableRegistry variableRegistry, String name, String value, Definition.OverwritePolicy overwritePolicy) {
|
||||
// old implementation
|
||||
variableRegistry.register(name, name);
|
||||
variableRegistry.register(name, value);
|
||||
// new implementation
|
||||
addDefinition(name, value, overwritePolicy);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue