mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 04:43:51 +02:00
Remove superfluous end pos seeks, fix validation bug
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ export abstract class Target {
|
||||
onfinalized: (() => unknown) | null = null;
|
||||
|
||||
slice(offset: number) {
|
||||
if (!Number.isInteger(offset) && offset < 0) {
|
||||
if (!Number.isInteger(offset) || offset < 0) {
|
||||
throw new TypeError('offset must be a non-negative integer.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user