discord-interactions-js icon indicating copy to clipboard operation
discord-interactions-js copied to clipboard

'arrayBuffer' is declared but its value is never read.

Open katopz opened this issue 2 years ago • 1 comments

Refer to https://github.com/discord/discord-interactions-js/blob/main/src/index.ts#L96-L97

      const arrayBuffer = value.buffer.slice(value.byteOffset, value.byteOffset + value.length);
      return new Uint8Array(value);

ts warning...

'arrayBuffer' is declared but its value is never read.

So the question is arrayBuffer didn't use when return, is this a bug or intend?

katopz avatar Jan 17 '22 08:01 katopz

Looks like it is unused, and therefore should be removed

typpo avatar Jan 19 '22 19:01 typpo