mirror of
https://github.com/dragonheim/gagent.git
synced 2025-01-18 09:36:28 -08:00
fix: commenting out some ineffective assignments.
This commit is contained in:
parent
7d5c02d16b
commit
ac8c225752
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue