From 6c84631bbc0d0aeb57661741d85f7889f64430ff Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 11 Nov 2019 13:32:19 +0100 Subject: [PATCH] Remove redundant "no copy" check We also check this list as a filter to walkDir(), so no need for the extra check here. --- kasmweb/utils/use_require.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/kasmweb/utils/use_require.js b/kasmweb/utils/use_require.js index 2487927..f89becb 100755 --- a/kasmweb/utils/use_require.js +++ b/kasmweb/utils/use_require.js @@ -177,8 +177,6 @@ function make_lib_files(import_format, source_maps, with_app_dir, only_legacy) { const handleDir = (js_only, vendor_rewrite, in_path_base, filename) => Promise.resolve() .then(() => { - if (no_copy_files.has(filename)) return; - const out_path = path.join(out_path_base, path.relative(in_path_base, filename)); const legacy_path = path.join(legacy_path_base, path.relative(in_path_base, filename));