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-unixfs
Commits
c502cd7f
Commit
c502cd7f
authored
9 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm panic
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
c40e6b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
format.go
format.go
+3
-3
No files found.
format.go
View file @
c502cd7f
...
...
@@ -77,7 +77,7 @@ func WrapData(b []byte) []byte {
return
out
}
func
SymlinkData
(
path
string
)
[]
byte
{
func
SymlinkData
(
path
string
)
(
[]
byte
,
error
)
{
pbdata
:=
new
(
pb
.
Data
)
typ
:=
pb
.
Data_Symlink
pbdata
.
Data
=
[]
byte
(
path
)
...
...
@@ -85,10 +85,10 @@ func SymlinkData(path string) []byte {
out
,
err
:=
proto
.
Marshal
(
pbdata
)
if
err
!=
nil
{
panic
(
err
)
return
nil
,
err
}
return
out
return
out
,
nil
}
func
UnwrapData
(
data
[]
byte
)
([]
byte
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
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