Skip to content

Commit

Permalink
handle nil dh result
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Jul 13, 2023
1 parent 16fc5ed commit 9171e4d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/verify/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,11 +669,7 @@ func verifyIngest(cctx *cli.Context, find *client.Client, dhFind *client.DHashCl
return result, nil
}

if dhFind != nil {
fmt.Println("🔒 Reader privacy enabled")
}

if len(response.MultihashResults) == 0 {
if response == nil || len(response.MultihashResults) == 0 {
result.Absent = mhsCount
return result, nil
}
Expand Down Expand Up @@ -724,6 +720,7 @@ func doDHFind(ctx context.Context, cl *client.DHashClient, mhs []multihash.Multi
resp.MultihashResults = append(resp.MultihashResults, r.MultihashResults...)
}
}
fmt.Println("🔒 Reader privacy enabled")
return resp, nil
}

Expand Down

0 comments on commit 9171e4d

Please sign in to comment.