assemblyscript-json icon indicating copy to clipboard operation
assemblyscript-json copied to clipboard

Fixes compiler error

Open bhelx opened this issue 2 years ago • 0 comments

I'm getting this error using asc 0.21.3:

INFO AS210: Expression is never 'null'.
    :
 82 │ this.writeString(str!);
    │                  ~~~
    └─ in ~lib/assemblyscript-json/assembly/encoder.ts(82,24)

I believe it's because there is already a null check on the line above. This change fixed the problem for me.

bhelx avatar Sep 10 '22 15:09 bhelx