Skip to content

Commit fd3252e

Browse files
committed
src: fix duplication of externalized builtin code
The `else` here was missing, causing us to append the file to its existing `source` already in the map. Refs: nodejs#45942
1 parent bcebb91 commit fd3252e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_builtins.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ void BuiltinLoader::AddExternalizedBuiltin(const char* id,
224224
auto it = externalized_builtin_sources.find(id);
225225
if (it != externalized_builtin_sources.end()) {
226226
source = it->second;
227-
}
228-
{
227+
} else {
229228
int r = ReadFileSync(&source, filename);
230229
if (r != 0) {
231230
fprintf(stderr,

0 commit comments

Comments
 (0)