Skip to content

Commit

Permalink
fix(remote): Handle error in order to avoid nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Feb 6, 2020
1 parent d9e18c5 commit 4a88b52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func (r *RemoteMethods) Fetch(p *FetchParams, res *[]DatasetLogItem) error {
// TODO (b5) - need contexts yo
ctx := context.TODO()
logs, err := r.inst.RemoteClient().FetchLogs(ctx, repo.ConvertToDsref(ref), addr)
if err != nil {
return err
}

// TODO (b5) - FetchLogs currently returns oplogs arranged in user > dataset > branch
// hierarchy, and we need to descend to the branch oplog to get commit history
Expand Down

0 comments on commit 4a88b52

Please sign in to comment.