diff options
| author | Wine93 <wine93.info@gmail.com> | 2019-04-30 03:22:19 +0000 |
|---|---|---|
| committer | Wine93 <wine93.info@gmail.com> | 2019-04-30 03:22:19 +0000 |
| commit | 32f93fb09e76cc89c14b33bb049f8427f99baa9e (patch) | |
| tree | b404567dcb1812b49d46c3cc56bedbb7512fcc23 /weed/storage/volume_checking.go | |
| parent | 82e06a780bb12adc47d6036067164c2fd02a25c4 (diff) | |
| download | seaweedfs-32f93fb09e76cc89c14b33bb049f8427f99baa9e.tar.xz seaweedfs-32f93fb09e76cc89c14b33bb049f8427f99baa9e.zip | |
style: go fmt for all
Diffstat (limited to 'weed/storage/volume_checking.go')
| -rw-r--r-- | weed/storage/volume_checking.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.go index 980656823..7bb998fa6 100644 --- a/weed/storage/volume_checking.go +++ b/weed/storage/volume_checking.go @@ -15,7 +15,7 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uin return 0, fmt.Errorf("verifyIndexFileIntegrity %s failed: %v", indexFile.Name(), e) } if indexSize == 0 { - return 0,nil + return 0, nil } var lastIdxEntry []byte if lastIdxEntry, e = readIndexEntryAtOffset(indexFile, indexSize-NeedleMapEntrySize); e != nil { @@ -23,7 +23,7 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uin } key, offset, size := IdxFileEntry(lastIdxEntry) if offset.IsZero() { - return 0,nil + return 0, nil } if size == TombstoneFileSize { size = 0 |
