-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: console #534
fix: console #534
Conversation
@@ -94,7 +94,6 @@ export class SavePackageVersionController extends AbstractController { | |||
// if pkg already exists, still allow to publish | |||
const [ scope, name ] = getScopeAndName(fullname); | |||
const pkg = await this.packageRepository.findPackage(scope, name); | |||
console.log('pkg', pkg); | |||
if (!pkg) { | |||
const errors = (validateResult.errors || validateResult.warnings).join(', '); | |||
throw new UnprocessableEntityError(`package.name invalid, errors: ${errors}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这段代码的修改内容相对较少,主要是删除了一行console.log('pkg', pkg);语句。从代码安全和性能优化角度考虑,去掉这行调试信息并不会带来什么风险或者显著的改进。
Codecov Report
@@ Coverage Diff @@
## master #534 +/- ##
==========================================
- Coverage 97.03% 96.98% -0.06%
==========================================
Files 174 174
Lines 16561 16560 -1
Branches 2171 2167 -4
==========================================
- Hits 16070 16060 -10
- Misses 491 500 +9
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[skip ci] ## [3.34.9](v3.34.8...v3.34.9) (2023-06-27) ### Bug Fixes * console ([#534](#534)) ([4141003](4141003))
去除 console.log