projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b78340
)
9397: Use idomatic loop form.
author
Peter Amstutz <peter.amstutz@curoverse.com>
Thu, 9 Feb 2017 18:25:40 +0000
(13:25 -0500)
committer
Peter Amstutz <peter.amstutz@curoverse.com>
Thu, 9 Feb 2017 18:25:53 +0000
(13:25 -0500)
sdk/go/manifest/manifest.go
patch
|
blob
|
history
diff --git
a/sdk/go/manifest/manifest.go
b/sdk/go/manifest/manifest.go
index 208cfdd4118664894c78a266208741857a3ed1a5..e8be7a2308c089803d227c7d50c19255b981dbd5 100644
(file)
--- a/
sdk/go/manifest/manifest.go
+++ b/
sdk/go/manifest/manifest.go
@@
-200,7
+200,7
@@
func (s *ManifestStream) sendFileSegmentIterByName(filepath string, ch chan<- *F
// Shouldn't happen, file segments are checked in parseManifestStream
panic(fmt.Sprintf("File segment %v extends past end of stream", fTok))
}
- for
i < len(s.Blocks)
{
+ for
; i < len(s.Blocks); i++
{
blockPos := s.BlockOffsets[i]
blockEnd := s.BlockOffsets[i+1]
if blockEnd <= wantPos {
@@
-227,7
+227,6
@@
func (s *ManifestStream) sendFileSegmentIterByName(filepath string, ch chan<- *F
fseg.Len = int(wantPos+wantLen-blockPos) - fseg.Offset
}
ch <- &fseg
- i += 1
}
}
}