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
8bf6483e
Commit
8bf6483e
authored
7 years ago
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: multiple govet warnings
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
a0f5ffd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mod/dagmodifier.go
mod/dagmodifier.go
+3
-0
No files found.
mod/dagmodifier.go
View file @
8bf6483e
...
...
@@ -336,15 +336,18 @@ func (dm *DagModifier) readPrep() error {
ctx
,
cancel
:=
context
.
WithCancel
(
dm
.
ctx
)
dr
,
err
:=
uio
.
NewDagReader
(
ctx
,
dm
.
curNode
,
dm
.
dagserv
)
if
err
!=
nil
{
cancel
()
return
err
}
i
,
err
:=
dr
.
Seek
(
int64
(
dm
.
curWrOff
),
os
.
SEEK_SET
)
if
err
!=
nil
{
cancel
()
return
err
}
if
i
!=
int64
(
dm
.
curWrOff
)
{
cancel
()
return
ErrSeekFail
}
...
...
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