aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-24 13:06:03 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:48:50 +0100
commit268f6175fe7394f057a1b6b38c239c36e2c8619a (patch)
tree6b5889491d33a9a18aef5806afcfbf5443bab620 /bridge/github
parente100ee9f10dd7f600b58bf3d24b36f9b286210d6 (diff)
downloadgit-bug-268f6175fe7394f057a1b6b38c239c36e2c8619a.tar.gz
github: simplify some code
Diffstat (limited to 'bridge/github')
-rw-r--r--bridge/github/import.go15
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 {