mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
remove redundant invariant
This commit is contained in:
parent
bdbddb3c88
commit
cc4f5665aa
1 changed files with 0 additions and 3 deletions
|
@ -12,7 +12,6 @@ import {
|
||||||
castArray,
|
castArray,
|
||||||
findLastIndex,
|
findLastIndex,
|
||||||
getUpdatedTimestamp,
|
getUpdatedTimestamp,
|
||||||
invariant,
|
|
||||||
isTestEnv,
|
isTestEnv,
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
|
@ -241,8 +240,6 @@ export const duplicateElements = (
|
||||||
index: number,
|
index: number,
|
||||||
elements: ExcalidrawElement | null | ExcalidrawElement[],
|
elements: ExcalidrawElement | null | ExcalidrawElement[],
|
||||||
) => {
|
) => {
|
||||||
invariant(index >= 0, "targetIndex must be >= 0");
|
|
||||||
|
|
||||||
if (!elements) {
|
if (!elements) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue