Remove old not-null assertion

This commit is contained in:
Matt Bierner 2021-08-12 16:18:41 -07:00
parent 2a6ac9fe43
commit 383c9cf613
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -85,7 +85,7 @@ export class VSBuffer {
// IMPORTANT: use subarray instead of slice because TypedArray#slice
// creates shallow copy and NodeBuffer#slice doesn't. The use of subarray
// ensures the same, performance, behaviour.
return new VSBuffer(this.buffer.subarray(start!/*bad lib.d.ts*/, end));
return new VSBuffer(this.buffer.subarray(start, end));
}
set(array: VSBuffer, offset?: number): void;