Fix slice index for parameter.

This commit is contained in:
Josh Rickmar 2014-01-22 10:13:34 -05:00
parent e321b6bdc7
commit e745fffb83

View file

@ -133,7 +133,7 @@ func NewExportWatchingWalletCmd(id interface{}, optArgs ...interface{}) (*Export
account = a account = a
} }
if len(optArgs) > 1 { if len(optArgs) > 1 {
b, ok := optArgs[0].(bool) b, ok := optArgs[1].(bool)
if !ok { if !ok {
return nil, errors.New("second optarg zip must be a boolean") return nil, errors.New("second optarg zip must be a boolean")
} }