From 3d4ccbe0f451e7bffbf53179dcd4e4ad97d2dc14 Mon Sep 17 00:00:00 2001 From: Mateus Braga Date: Wed, 8 Jan 2014 11:11:19 -0200 Subject: [PATCH] Remove unused NewSetAttributeClaim in RunCommand Change-Id: I092020f675296e729e3dfe15d97a42682dd13ab9 --- cmd/camput/files.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/camput/files.go b/cmd/camput/files.go index f5f28f800..428b68d04 100644 --- a/cmd/camput/files.go +++ b/cmd/camput/files.go @@ -259,7 +259,7 @@ func (c *fileCmd) RunCommand(args []string) error { } } - if permaNode != nil && lastPut != nil { + if permaNode != nil && lastPut != nil { put, err := up.UploadAndSignBlob(schema.NewSetAttributeClaim(permaNode.BlobRef, "camliContent", lastPut.BlobRef.String())) if handleResult("claim-permanode-content", put, err) != nil { return err @@ -270,9 +270,8 @@ func (c *fileCmd) RunCommand(args []string) error { } if c.tag != "" { tags := strings.Split(c.tag, ",") - m := schema.NewSetAttributeClaim(permaNode.BlobRef, "tag", tags[0]) for _, tag := range tags { - m = schema.NewAddAttributeClaim(permaNode.BlobRef, "tag", tag) + m := schema.NewAddAttributeClaim(permaNode.BlobRef, "tag", tag) put, err := up.UploadAndSignBlob(m) handleResult("claim-permanode-tag", put, err) }