From d8142b7334bfef71c39ca50397de59ac9bc0e1c6 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Mon, 18 May 2020 22:41:05 +0200 Subject: [PATCH] ipfshttp: Do not log "unpin request successful" when object already unpinned --- ipfsconn/ipfshttp/ipfshttp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ipfsconn/ipfshttp/ipfshttp.go b/ipfsconn/ipfshttp/ipfshttp.go index 8172e514..ec078962 100644 --- a/ipfsconn/ipfshttp/ipfshttp.go +++ b/ipfsconn/ipfshttp/ipfshttp.go @@ -466,6 +466,7 @@ func (ipfs *Connector) Unpin(ctx context.Context, hash cid.Cid) error { return err } logger.Debug("IPFS object is already unpinned: ", hash) + return nil } logger.Info("IPFS Unpin request succeeded:", hash)