aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunks_read.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-10-16 16:09:30 -0700
committerChris Lu <chris.lu@gmail.com>2021-10-16 16:09:30 -0700
commit93624635b47bd6679ed3ac4035a4f64fe9beca29 (patch)
treed3be7d95902d82319e2d929194c843748c8feb18 /weed/filer/filechunks_read.go
parent6c704eb2bac5a6f47e6b6ae71654a2176ae8c3ef (diff)
downloadseaweedfs-93624635b47bd6679ed3ac4035a4f64fe9beca29.tar.xz
seaweedfs-93624635b47bd6679ed3ac4035a4f64fe9beca29.zip
Revert "go fmt"
This reverts commit 6c704eb2bac5a6f47e6b6ae71654a2176ae8c3ef.
Diffstat (limited to 'weed/filer/filechunks_read.go')
-rw-r--r--weed/filer/filechunks_read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/filechunks_read.go b/weed/filer/filechunks_read.go
index bc05d9821..b39f6a35c 100644
--- a/weed/filer/filechunks_read.go
+++ b/weed/filer/filechunks_read.go
@@ -40,7 +40,7 @@ func readResolvedChunks(chunks []*filer_pb.FileChunk) (visibles []VisibleInterva
for _, point := range points {
if point.isStart {
if len(queue) > 0 {
- lastIndex := len(queue) - 1
+ lastIndex := len(queue) -1
lastPoint := queue[lastIndex]
if point.x != prevX && lastPoint.ts < point.ts {
visibles = addToVisibles(visibles, prevX, lastPoint, point)