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
mf
go-multiaddr
Commits
ece734f1
Commit
ece734f1
authored
Jun 22, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove redundant case
parent
96804982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
codec.go
codec.go
+0
-6
No files found.
codec.go
View file @
ece734f1
...
...
@@ -155,12 +155,6 @@ func sizeForAddr(p Protocol, b []byte) (skip, size int, err error) {
return
0
,
(
p
.
Size
/
8
),
nil
case
p
.
Size
==
0
:
return
0
,
0
,
nil
case
p
.
Path
:
size
,
n
,
err
:=
ReadVarintCode
(
b
)
if
err
!=
nil
{
return
0
,
0
,
err
}
return
n
,
size
,
nil
default
:
size
,
n
,
err
:=
ReadVarintCode
(
b
)
if
err
!=
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