diff --git a/ReactNativeClient/lib/shim-init-node.js b/ReactNativeClient/lib/shim-init-node.js index 6d6984f07..91622ec84 100644 --- a/ReactNativeClient/lib/shim-init-node.js +++ b/ReactNativeClient/lib/shim-init-node.js @@ -217,10 +217,9 @@ function shimInit() { let resource = null; if (!options.createFileURL) { resource = await shim.createResourceFromPath(filePath, null, options); + if (!resource) return null; } - if (!resource) return null; - const newBody = []; if (position === null) {