Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 27, 2018
1 parent 47fe423 commit 1e73992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pack/internal/packtest/blocktest.go
Expand Up @@ -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)
Expand Down

0 comments on commit 1e73992

Please sign in to comment.