From 1fd1c5e2924a7d68d2b794be08251bd7fbe84d6a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 24 Oct 2014 08:52:42 -0700 Subject: [PATCH] fixe #620 --- plugin/remote/github/helper.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/remote/github/helper.go b/plugin/remote/github/helper.go index 244b863a4..b6ea885b8 100644 --- a/plugin/remote/github/helper.go +++ b/plugin/remote/github/helper.go @@ -225,8 +225,7 @@ func CreateUpdateKey(client *github.Client, owner, name, title, key string) (*gi if k != nil { k.Title = github.String(title) k.Key = github.String(key) - var updated, _, err = client.Repositories.EditKey(owner, name, *k.ID, k) - return updated, err + client.Repositories.DeleteKey(owner, name, *k.ID) } return CreateKey(client, owner, name, title, key)