Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-merkledag
Commits
3e667756
Commit
3e667756
authored
Oct 28, 2017
by
Ian Preston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve style
License: MIT Signed-off-by:
Ian Preston
<
ianopolous@protonmail.com
>
parent
889c7246
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
utils/diffenum.go
utils/diffenum.go
+4
-3
No files found.
utils/diffenum.go
View file @
3e667756
...
@@ -72,14 +72,15 @@ func getLinkDiff(a, b node.Node) []diffpair {
...
@@ -72,14 +72,15 @@ func getLinkDiff(a, b node.Node) []diffpair {
inb
[
l
.
Cid
.
KeyString
()]
=
l
inb
[
l
.
Cid
.
KeyString
()]
=
l
}
}
for
_
,
l
:=
range
a
.
Links
()
{
for
_
,
l
:=
range
a
.
Links
()
{
ina
[
l
.
Cid
.
KeyString
()]
=
l
var
key
=
l
.
Cid
.
KeyString
()
if
inb
[
l
.
Cid
.
KeyString
()]
==
nil
{
ina
[
key
]
=
l
if
inb
[
key
]
==
nil
{
aonly
=
append
(
aonly
,
l
.
Cid
)
aonly
=
append
(
aonly
,
l
.
Cid
)
}
}
}
}
var
out
[]
diffpair
var
out
[]
diffpair
var
aindex
=
0
var
aindex
int
for
_
,
l
:=
range
b
.
Links
()
{
for
_
,
l
:=
range
b
.
Links
()
{
if
ina
[
l
.
Cid
.
KeyString
()]
!=
nil
{
if
ina
[
l
.
Cid
.
KeyString
()]
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment