diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-24 14:56:16 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-24 14:56:16 -0800 |
| commit | 9ff72f616a488dce97bf26f118531595c5b74600 (patch) | |
| tree | 7e5aea533cb34e17bddc51714e9c62837d09c197 | |
| parent | efd2f50edecf698993dd228a7acd8ae4edd201ce (diff) | |
| download | seaweedfs-9ff72f616a488dce97bf26f118531595c5b74600.tar.xz seaweedfs-9ff72f616a488dce97bf26f118531595c5b74600.zip | |
go fmt
| -rw-r--r-- | weed/storage/disk_location.go | 1 | ||||
| -rw-r--r-- | weed/storage/needle_map/compact_map_test.go | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index 538f7469f..e116fc715 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -155,7 +155,6 @@ func (l *DiskLocation) DeleteCollectionFromDiskLocation(collection string) (e er e = fmt.Errorf(errBuilder.String()) } - return } diff --git a/weed/storage/needle_map/compact_map_test.go b/weed/storage/needle_map/compact_map_test.go index 633be07f6..7eea3969a 100644 --- a/weed/storage/needle_map/compact_map_test.go +++ b/weed/storage/needle_map/compact_map_test.go @@ -9,11 +9,11 @@ import ( func TestOverflow2(t *testing.T) { m := NewCompactMap() _, oldSize := m.Set(NeedleId(150088), ToOffset(8), 3000073) - if oldSize!=0{ + if oldSize != 0 { t.Fatalf("expecting no previous data") } _, oldSize = m.Set(NeedleId(150088), ToOffset(8), 3000073) - if oldSize!=3000073{ + if oldSize != 3000073 { t.Fatalf("expecting previous data size is %d, not %d", 3000073, oldSize) } m.Set(NeedleId(150073), ToOffset(8), 3000073) |
