diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 13:06:03 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:48:50 +0100 |
commit | 268f6175fe7394f057a1b6b38c239c36e2c8619a (patch) | |
tree | 6b5889491d33a9a18aef5806afcfbf5443bab620 /bridge/github | |
parent | e100ee9f10dd7f600b58bf3d24b36f9b286210d6 (diff) | |
download | git-bug-268f6175fe7394f057a1b6b38c239c36e2c8619a.tar.gz |
github: simplify some code
Diffstat (limited to 'bridge/github')
-rw-r--r-- | bridge/github/import.go | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index 4627145e..f6b729b7 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -578,18 +578,9 @@ func (gi *githubImporter) ensureCommentEdit(repo *cache.RepoCache, b *cache.BugC fmt.Println("import edition") - var editor *cache.IdentityCache - if edit.Editor == nil { - // user account has been deleted, replacing it with the ghost - editor, err = gi.getGhost(repo) - if err != nil { - return err - } - } else { - editor, err = gi.ensurePerson(repo, edit.Editor) - if err != nil { - return err - } + editor, err := gi.ensurePerson(repo, edit.Editor) + if err != nil { + return err } switch { |