mirror of
https://github.com/restic/restic.git
synced 2025-12-12 03:31:56 +00:00
Reduce linter ignores
This commit is contained in:
@@ -297,11 +297,12 @@ func TestIndexUnserialize(t *testing.T) {
|
||||
rtest.Equals(t, test.tpe, blob.Type)
|
||||
rtest.Equals(t, test.offset, blob.Offset)
|
||||
rtest.Equals(t, test.length, blob.Length)
|
||||
if task.version == 1 {
|
||||
switch task.version {
|
||||
case 1:
|
||||
rtest.Equals(t, uint(0), blob.UncompressedLength)
|
||||
} else if task.version == 2 {
|
||||
case 2:
|
||||
rtest.Equals(t, test.uncompressedLength, blob.UncompressedLength)
|
||||
} else {
|
||||
default:
|
||||
t.Fatal("Invalid index version")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user