Skip to content

Commit

Permalink
change ipfs pin response field name from Pinned to Pins
Browse files Browse the repository at this point in the history
This way, we don't claim to pin when unpinning.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Mar 15, 2016
1 parent 790acf2 commit c6ef24f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/commands/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var PinCmd = &cmds.Command{
}

type PinOutput struct {
Pinned []key.Key
Pins []key.Key
}

var addPinCmd = &cmds.Command{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c6ef24f

Please sign in to comment.