Merge pull request #647 from filcloud/fix/646-slice-empty

add empty slice check
This commit is contained in:
Łukasz Magiera 2019-11-20 09:07:19 -06:00 committed by GitHub
commit d680dab52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,6 +230,10 @@ var clientRetrieveCmd = &cli.Command{
// TODO: parse offer strings from `client find`, make this smarter
if len(offers) < 1 {
fmt.Println("Failed to find file")
return nil
}
order := offers[0].Order()
order.Client = payer