Skip to content

Commit

Permalink
src: remove duplicated code in GenerateSingleExecutableBlob()
Browse files Browse the repository at this point in the history
  • Loading branch information
pluris committed Aug 12, 2023
1 parent 3224527 commit 844339d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/node_sea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,6 @@ ExitCode GenerateSingleExecutableBlob(
std::optional<std::string_view> optional_sv_code_cache;
std::string code_cache;
if (static_cast<bool>(config.flags & SeaFlags::kUseCodeCache)) {
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;
}
code_cache = optional_code_cache.value();
optional_sv_code_cache = code_cache;
}
Expand Down

0 comments on commit 844339d

Please sign in to comment.