Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3537ae

Browse files
authored
src: fix duplication of externalized builtin code
The `else` here was missing, causing us to append the file to itsexisting `source` already in the map.Refs:#45942PR-URL:#47079Reviewed-By: Anna Henningsen <anna@addaleax.net>Reviewed-By: Colin Ihrig <cjihrig@gmail.com>Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parentd51541b commitc3537ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/node_builtins.cc

Lines changed: 1 addition & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp