Skip to content

Commit

Permalink
src: remove duplicated code in GenerateSingleExecutableBlob()
Browse files Browse the repository at this point in the history
PR-URL: nodejs#49119
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
Jungku Lee authored and RafaelGSS committed Aug 15, 2023
1 parent b9407ff commit eba3a40
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/node_sea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,6 @@ ExitCode GenerateSingleExecutableBlob(
}
}

std::optional<std::string> 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<std::string_view> optional_sv_code_cache;
std::string code_cache;
if (static_cast<bool>(config.flags & SeaFlags::kUseCodeCache)) {
Expand Down

0 comments on commit eba3a40

Please sign in to comment.