Allow nil conversion handlers in btcctl.
This commit is contained in:
parent
2ea4239f5e
commit
4e5cd1a326
1 changed files with 8 additions and 6 deletions
|
@ -159,13 +159,15 @@ func commandHandler(cfg *config, command string, data *handlerData, args []strin
|
|||
iargs[i] = arg
|
||||
}
|
||||
for i := range iargs {
|
||||
converter := convHandlers[i]
|
||||
if converter != nil {
|
||||
convertedArg, err := converter(args[i])
|
||||
if err != nil {
|
||||
return err
|
||||
if convHandlers != nil {
|
||||
converter := convHandlers[i]
|
||||
if converter != nil {
|
||||
convertedArg, err := converter(args[i])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
iargs[i] = convertedArg
|
||||
}
|
||||
iargs[i] = convertedArg
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue