diff options
Diffstat (limited to 'bridge')
-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 { |