Skip to content

Commit 35c1a5b

Browse files
committed
Update variable
1 parent 2a52c89 commit 35c1a5b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/recipe/lang/Node.js/Bun.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pl_nodejs_bun_getsrc (char *option)
2626
void
2727
pl_nodejs_bun_setsrc (char *option)
2828
{
29-
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Manual;
29+
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Manual;
3030
chsrc_yield_source (pl_nodejs);
3131

3232
char *file = xy_strjoin(3, "[install]\n"
@@ -35,7 +35,7 @@ pl_nodejs_bun_setsrc (char *option)
3535
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.bun/bunfig.toml"), " 文件中:"));
3636
puts (file);
3737

38-
chsrc_conclude (&source, chsrc_type);
38+
chsrc_conclude (&source, setsrc_type);
3939
}
4040

4141

src/recipe/lang/Python/Python.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pl_python_setsrc (char *option)
4545
chsrc_note2 (msg);
4646
}
4747

48-
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
48+
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
4949

5050
bool pdm_exist = false,
5151
poetry_exist = false;
@@ -71,7 +71,7 @@ pl_python_setsrc (char *option)
7171
pl_python_pdm_setsrc (option);
7272
}
7373

74-
chsrc_conclude (&source, chsrc_type);
74+
chsrc_conclude (&source, setsrc_type);
7575
}
7676

7777
void

src/recipe/lang/Ruby.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pl_ruby_remove_gem_source (const char *source)
6060
void
6161
pl_ruby_setsrc (char *option)
6262
{
63-
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
63+
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
6464

6565
chsrc_ensure_program ("gem");
6666

@@ -85,7 +85,7 @@ pl_ruby_setsrc (char *option)
8585
cmd = xy_strjoin (4, "bundle config", where, "'mirror.https://rubygems.org' ", source.url);
8686
chsrc_run (cmd, RunOpt_No_Last_New_Line);
8787

88-
chsrc_conclude (&source, chsrc_type);
88+
chsrc_conclude (&source, setsrc_type);
8989
}
9090

9191
void

src/recipe/template.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void
8181
/* 具体的换源步骤,如调用第三方命令... */
8282

8383
// 最后总结输出
84-
chsrc_conclude (&source, chsrc_type);
84+
chsrc_conclude (&source, setsrc_type);
8585
}
8686

8787

0 commit comments

Comments
 (0)