mirror of https://github.com/perkeep/perkeep.git
Merge "Remove unused NewSetAttributeClaim in RunCommand"
This commit is contained in:
commit
ded498a5fc
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue