Commit 3e667756 authored by Ian Preston's avatar Ian Preston

improve style

License: MIT
Signed-off-by: default avatarIan Preston <ianopolous@protonmail.com>
parent 889c7246
......@@ -72,14 +72,15 @@ func getLinkDiff(a, b node.Node) []diffpair {
inb[l.Cid.KeyString()] = l
}
for _, l := range a.Links() {
ina[l.Cid.KeyString()] = l
if inb[l.Cid.KeyString()] == nil {
var key = l.Cid.KeyString()
ina[key] = l
if inb[key] == nil {
aonly = append(aonly, l.Cid)
}
}
var out []diffpair
var aindex = 0
var aindex int
for _, l := range b.Links() {
if ina[l.Cid.KeyString()] != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment