mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
commands: NewRequest: Documented error case
This commit is contained in:
parent
3c5bfcec31
commit
abb8374d43
@ -257,6 +257,7 @@ func NewEmptyRequest() (Request, error) {
|
||||
}
|
||||
|
||||
// NewRequest returns a request initialized with given arguments
|
||||
// An non-nil error will be returned if the provided option values are invalid
|
||||
func NewRequest(path []string, opts optMap, args []interface{}, cmd *Command, optDefs map[string]Option) (Request, error) {
|
||||
if path == nil {
|
||||
path = make([]string, 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user