From 268f6175fe7394f057a1b6b38c239c36e2c8619a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 24 Feb 2019 13:06:03 +0100 Subject: github: simplify some code --- bridge/github/import.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'bridge/github') 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 { -- cgit