Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix(editor): remove leftover debug code path (#10954)

David Luzar2b0e4c9623e4
diff --git a/packages/excalidraw/data/resave.ts b/packages/excalidraw/data/resave.ts
index 8c443e0e28..abeeb16a68 100644
--- a/packages/excalidraw/data/resave.ts
+++ b/packages/excalidraw/data/resave.ts
@@ -20,10 +20,6 @@ export const resaveAsImageWithScene = async (
) => {
const fileHandleType = getFileHandleType(fileHandle);
- if (Math.random() < 1) {
- throw new Error("OLALALALA");
- }
-
if (!isImageFileHandleType(fileHandleType)) {
throw new Error(
"fileHandle should exist and should be of type svg or png when resaving",