Remove old not-null assertion
This commit is contained in:
parent
2a6ac9fe43
commit
383c9cf613
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue