Skip to content

Commit

Permalink
Make Script's 'right' field a local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Jun 24, 2020
1 parent 784191d commit 625ea38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/laytonsmith/core/Script.java
Expand Up @@ -74,7 +74,6 @@ public class Script {
public static boolean debugOutput = false;

private List<Token> left;
private List<List<Token>> right;
private List<Token> fullRight;
private List<Construct> cleft;
private List<ParseTree> cright;
Expand Down Expand Up @@ -889,7 +888,7 @@ private boolean compileLeft() {

public void compileRight(Environment env) throws ConfigCompileException, ConfigCompileGroupException {
List<Token> temp = new ArrayList<>();
right = new ArrayList<>();
List<List<Token>> right = new ArrayList<>();
for(Token t : fullRight) {
if(t.type == TType.SEPERATOR) {
right.add(temp);
Expand Down

0 comments on commit 625ea38

Please sign in to comment.