File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func CreateChecksum(wasm []byte) (Checksum, error) {
52
52
// magic number for Wasm is "\0asm"
53
53
// See https://webassembly.github.io/spec/core/binary/modules.html#binary-module
54
54
if ! bytes .Equal (wasm [:4 ], []byte ("\x00 \x61 \x73 \x6D " )) {
55
- return Checksum {}, fmt .Errorf ("Wasm bytes do not not start with Wasm magic number" )
55
+ return Checksum {}, fmt .Errorf ("Wasm bytes do not start with Wasm magic number" )
56
56
}
57
57
hash := sha256 .Sum256 (wasm )
58
58
return Checksum (hash [:]), nil
Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ func TestCreateChecksum(t *testing.T) {
29
29
30
30
// Text file fails
31
31
_ , err = CreateChecksum ([]byte ("Hello world" ))
32
- require .ErrorContains (t , err , "do not not start with Wasm magic number" )
32
+ require .ErrorContains (t , err , "do not start with Wasm magic number" )
33
33
}
You can’t perform that action at this time.
0 commit comments