From 8d6948f8e2800baaedf5183937d1d20fd17ca084 Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Tue, 15 Aug 2023 02:33:33 +0900 Subject: [PATCH] src: remove duplicated code in `GenerateSingleExecutableBlob()` PR-URL: https://github.com/nodejs/node/pull/49119 Reviewed-By: Luigi Pinca Reviewed-By: Deokjin Kim Reviewed-By: Darshan Sen --- src/node_sea.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/node_sea.cc b/src/node_sea.cc index c595afbc753a79..a8dbfeaa424943 100644 --- a/src/node_sea.cc +++ b/src/node_sea.cc @@ -486,13 +486,6 @@ ExitCode GenerateSingleExecutableBlob( } } - std::optional optional_code_cache = - GenerateCodeCache(config.main_path, main_script); - if (!optional_code_cache.has_value()) { - FPrintF(stderr, "Cannot generate V8 code cache\n"); - return ExitCode::kGenericUserError; - } - std::optional optional_sv_code_cache; std::string code_cache; if (static_cast(config.flags & SeaFlags::kUseCodeCache)) {