Skip to content

2nd-batch-09-条件判断冗余#75338

Merged
wanghuancoder merged 2 commits into
PaddlePaddle:developfrom
ApricityXX:2nd_batch_09
Sep 19, 2025
Merged

2nd-batch-09-条件判断冗余#75338
wanghuancoder merged 2 commits into
PaddlePaddle:developfrom
ApricityXX:2nd_batch_09

Conversation

@ApricityXX
Copy link
Copy Markdown
Contributor

@ApricityXX ApricityXX commented Sep 17, 2025

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

第二批-编号09(共1处)
变量名 filetype 在两个独立的 if 语句中被赋值,但由于缺少 elif,当文件以 .py 结尾时,filetype 会被错误地重新赋值为 'py',即使它已经是 'cc',应使用 elif 确保文件类型判断逻辑互斥,避免覆盖

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Sep 17, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Copy Markdown
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wanghuancoder wanghuancoder merged commit 72af793 into PaddlePaddle:develop Sep 19, 2025
74 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants