aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunks_read.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-02 23:39:16 -0700
committerChris Lu <chris.lu@gmail.com>2021-11-02 23:39:16 -0700
commit0c8dea9de8dffa2e2cc252cdab7112a3664b3a09 (patch)
tree3c0cfd3cbe04c9a74059be5dc9725d00725afa0c /weed/filer/filechunks_read.go
parent5160eb08f7665409221ebb0b9db6f4820e29bed3 (diff)
downloadseaweedfs-0c8dea9de8dffa2e2cc252cdab7112a3664b3a09.tar.xz
seaweedfs-0c8dea9de8dffa2e2cc252cdab7112a3664b3a09.zip
go fmt
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 742f050be..33ee6d138 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)