Skip to content

Instantly share code, notes, and snippets.

@nocd5
Created June 10, 2015 07:43
Show Gist options
  • Save nocd5/cc95c53be9af83254830 to your computer and use it in GitHub Desktop.
Save nocd5/cc95c53be9af83254830 to your computer and use it in GitHub Desktop.
nyagos panic 回避
diff --git a/interpreter/interpreter.go b/interpreter/interpreter.go
index b8e8633..9abf8c6 100644
--- a/interpreter/interpreter.go
+++ b/interpreter/interpreter.go
@@ -139,9 +139,9 @@ func (this *Interpreter) Spawnvp() (NextT, error) {
var whatToDo NextT = CONTINUE
var err error = nil
- if argsHook != nil {
- this.Args = argsHook(this, this.Args)
- }
+ // if argsHook != nil {
+ // this.Args = argsHook(this, this.Args)
+ // }
if len(this.Args) > 0 {
whatToDo, err = hook(this)
if whatToDo == THROUGH {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment