Skip to content

Commit 80f4690

Browse files
Mikachu2333ccmywish
authored andcommitted
remove warn msg
1 parent 62341da commit 80f4690

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/recipe/ware/WinGet.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ wr_winget_setsrc (char *option)
4848
{
4949
use_this_source (wr_winget);
5050

51-
// TODO:此处需要增加管理员权限校验
52-
char *msg = ENGLISH ? "This command needs ADMIN privilege" : "本命令需要管理员权限";
53-
chsrc_warn (msg);
54-
5551
// 2025.8.17 此前用户可能隐式使用默认源导致 remove 失败,故使用 Dont_Abort
5652
chsrc_run ("winget source remove winget", RunOpt_Dont_Abort_On_Failure);
5753
chsrc_run (xy_strjoin (3, "winget source add winget ", source.url, " --trust-level trusted"), RunOpt_Default);

0 commit comments

Comments
 (0)