Permalink
Browse files

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>
  • Loading branch information...
Quasilyte authored and robpike committed Jun 26, 2018
1 parent 47fe423 commit 1e73992b518722f8eb59d37ad70df02179063d76
Showing with 1 addition and 1 deletion.
  1. +1 −1 pack/internal/packtest/blocktest.go
@@ -165,7 +165,7 @@ func unpackEntryRandomly(ctx upspin.Config, store fakeStore, packer upspin.Packe
return err
}
off := (int)(cleartextBlockOffsets[n])
off := int(cleartextBlockOffsets[n])
want := data[off : off+len(clear)]
if !bytes.Equal(clear, want) {
return fmt.Errorf("block %d did not decrypt correctly", n)

0 comments on commit 1e73992

Please sign in to comment.