From c6ef24f769f2526558d6af2ca53ca93b09dde08a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 15 Mar 2016 16:55:26 -0400 Subject: [PATCH] change `ipfs pin` response field name from `Pinned` to `Pins` This way, we don't claim to pin when unpinning. License: MIT Signed-off-by: Steven Allen --- core/commands/pin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/commands/pin.go b/core/commands/pin.go index ef7fa978bbc5..af2339501189 100644 --- a/core/commands/pin.go +++ b/core/commands/pin.go @@ -28,7 +28,7 @@ var PinCmd = &cmds.Command{ } type PinOutput struct { - Pinned []key.Key + Pins []key.Key } var addPinCmd = &cmds.Command{ @@ -84,7 +84,7 @@ var addPinCmd = &cmds.Command{ } buf := new(bytes.Buffer) - for _, k := range added.Pinned { + for _, k := range added.Pins { fmt.Fprintf(buf, "pinned %s %s\n", k, pintype) } return buf, nil @@ -138,7 +138,7 @@ collected if needed. (By default, recursively. Use -r=false for direct pins) } buf := new(bytes.Buffer) - for _, k := range added.Pinned { + for _, k := range added.Pins { fmt.Fprintf(buf, "unpinned %s\n", k) } return buf, nil