fix: commenting out some ineffective assignments.

This commit is contained in:
James Wells 2023-03-31 07:07:57 -07:00
parent 7d5c02d16b
commit ac8c225752
Signed by: jwells
GPG key ID: 73196D10B8E65666

View file

@ -147,12 +147,12 @@ func (interp *Interpreter) Eval(script string) (string, error) {
* TODO: escape handling missing! * TODO: escape handling missing!
*/ */
case ptSEP: case ptSEP:
prevType = parser.Type // prevType = parser.Type
continue continue
} }
if parser.Type == ptEOL { if parser.Type == ptEOL {
prevType = parser.Type // prevType = parser.Type
if len(argv) != 0 { if len(argv) != 0 {
cmd := interp.Command(argv[0]) cmd := interp.Command(argv[0])
if cmd == nil { if cmd == nil {
@ -178,7 +178,7 @@ func (interp *Interpreter) Eval(script string) (string, error) {
} else { // Interpolation } else { // Interpolation
argv[len(argv)-1] = strings.Join([]string{argv[len(argv)-1], token}, "") argv[len(argv)-1] = strings.Join([]string{argv[len(argv)-1], token}, "")
} }
prevType = parser.Type // prevType = parser.Type
} }
return result, nil return result, nil
} }