Fix smaller issues and golints

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
Hector Sanjuan 2019-02-27 20:22:36 +00:00
parent ea85cf7805
commit 229c4d148c
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ func VerifyShards(t *testing.T, rootCid cid.Cid, pins MockPinStore, ipfs MockBlo
}
if metaPin.Reference == nil {
return nil, errors.New("MetaPin.Reference is unset")
return nil, errors.New("metaPin.Reference is unset")
}
clusterPin, err := pins.PinGet(ctx, *metaPin.Reference)

View File

@ -1492,7 +1492,7 @@ func (c *Cluster) cidsFromMetaPin(ctx context.Context, h cid.Cid) ([]cid.Cid, er
}
if pin.Reference == nil {
return nil, errors.New("MetaPin.Reference is unset")
return nil, errors.New("metaPin.Reference is unset")
}
list = append([]cid.Cid{*pin.Reference}, list...)
clusterDagPin, err := c.PinGet(ctx, *pin.Reference)

View File

@ -957,7 +957,7 @@ func handlePinResponseFormatFlags(
return
}
if status.Cid == cid.Undef { // no status from "wait"
if status == nil { // no status from "wait"
time.Sleep(time.Second)
status, cerr = globalClient.Status(ctx, pin.Cid, false)
}