From cfffdc999882a98c3910001a4e4934ef05f59924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20J=C3=B6nsson?= Date: Fri, 16 Mar 2018 09:32:45 +0100 Subject: [PATCH] tiny optimization --- src/FimFic2Epub.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FimFic2Epub.js b/src/FimFic2Epub.js index 03245ec..3f5b14a 100644 --- a/src/FimFic2Epub.js +++ b/src/FimFic2Epub.js @@ -789,6 +789,7 @@ class FimFic2Epub extends EventEmitter { } replaceRemoteResources () { + if (this.remoteResources.size === 0) return if (!this.options.includeExternal) { this.remoteResources.forEach((r, url) => { if (r.originalUrl && r.where) {