Skip to content

Commit 1e73992

Browse files
quasilyterobpike
authored andcommitted
pack/internal/packtest: remove redundant parens in type conv
Simplified (int)(v) to int(v). Change-Id: I0fd6f3ed57158101212ce7f7d3af0e9be936c094 Reviewed-on: https://upspin-review.googlesource.com/19060 Reviewed-by: Rob Pike <r@golang.org>
1 parent 47fe423 commit 1e73992

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pack/internal/packtest/blocktest.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func unpackEntryRandomly(ctx upspin.Config, store fakeStore, packer upspin.Packe
165165
return err
166166
}
167167

168-
off := (int)(cleartextBlockOffsets[n])
168+
off := int(cleartextBlockOffsets[n])
169169
want := data[off : off+len(clear)]
170170
if !bytes.Equal(clear, want) {
171171
return fmt.Errorf("block %d did not decrypt correctly", n)

0 commit comments

Comments
 (0)