Remove unnecessary assignment
authorRaphael von der Grün <raphinesse@gmail.com>
Sun, 13 May 2018 19:17:28 +0000 (21:17 +0200)
committerRaphael von der Grün <raphinesse@gmail.com>
Sun, 13 May 2018 19:18:00 +0000 (21:18 +0200)
index.js

index cdfe23d..01c97ee 100644 (file)
--- a/index.js
+++ b/index.js
@@ -184,8 +184,7 @@ module.exports = function (dir, optionalId, optionalName, cfg, extEvents) {
                     });
             // If assets are not online, resolve as a relative path on local computer
             } else {
-                cfg.lib.www.url = path.resolve(cfg.lib.www.url);
-                return cfg.lib.www.url;
+                return path.resolve(cfg.lib.www.url);
             }
         })
         .then(function (input_directory) {