Skip to content
Permalink
Browse files

Emit item edges only once. (#22)

  • Loading branch information...
efritz committed Aug 22, 2019
1 parent 056e3df commit e23ba48fe09fe0af26ab96dc8853f588aaafcca4
Showing with 4 additions and 4 deletions.
  1. +4 −4 export/exporter.go
@@ -461,11 +461,11 @@ func (e *exporter) exportUses(p *packages.Package, fi *fileInfo, filename string
}

def.defResultID = defResultID
}

_, err = e.emitItem(def.defResultID, []string{def.rangeID}, fi.docID)
if err != nil {
return fmt.Errorf(`emit "item": %v`, err)
_, err = e.emitItem(def.defResultID, []string{def.rangeID}, fi.docID)
if err != nil {
return fmt.Errorf(`emit "item": %v`, err)
}
}

refResult := e.refs[def.rangeID]

0 comments on commit e23ba48

Please sign in to comment.
You can’t perform that action at this time.