diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-01-06 18:23:25 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-01-06 18:23:25 +0400 |
commit | 224a157f608aaee895a7dfb8e825554259389987 (patch) | |
tree | 33a0819be96859819a94d4451928671290072796 | |
parent | 4770b77353acd57f7ba6ca3e50dae02c2a610088 (diff) |
useless continue removed in a for loop
-rw-r--r-- | src/main.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main.go b/src/main.go index b14e713..8ba1728 100644 --- a/src/main.go +++ b/src/main.go @@ -242,8 +242,6 @@ func parse(tokens[]Token) []Operation { op.name = "push" op.strData = variables[variableIndex] i++ - ops = append(ops, op) - continue case "pull": if i + 1 >= len(tokens) { @@ -263,9 +261,6 @@ func parse(tokens[]Token) []Operation { op.name = "pull" op.strData = variables[variableIndex] i++ - /* FIXME: better solution */ - ops = append(ops, op) - continue case "var": if i + 1 >= len(tokens) { @@ -277,9 +272,6 @@ func parse(tokens[]Token) []Operation { op.strData = tokens[i + 1].str variables = append(variables, tokens[i + 1].str) i++ - /* FIXME: better solution */ - ops = append(ops, op) - continue } number, err := strconv.Atoi(tokens[i].str); @@ -303,7 +295,6 @@ func parse(tokens[]Token) []Operation { op.name = "syscall" op.intData = parameters } - /* FIXME: check for variable names that comes without push or pull */ if op.name == "" { fmt.Fprintf(os.Stderr, "Undefined word `%s` %s: %d:%d\n", tokens[i].str, tokens[i].file, tokens[i].line, tokens[i].offset) |