Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
http: remove useless ternary in test#48481
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
http: remove useless ternary in test #48481
Uh oh!
There was an error while loading. Please reload this page.
Conversation
LockingReal commented Jun 17, 2023
@JakobJingleheimer I saw that you have been performing a codereview operation recently. Can you help me check it ~ 😉 |
JakobJingleheimer left a comment
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.
Nice simplification 🙌
JakobJingleheimer commented Jun 17, 2023
Note that your commit summary does not follow the required pattern. I think it should be |
LockingReal commented Jun 17, 2023
I have corrected it, thank you for your guidance ❤️ |
JakobJingleheimer commented Jun 17, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
It looks like you changed the PR title but not the commit message. The PR summary can be whatever you want, but the first commit is what CI checks (and prevents landing when invalid). You'll need to run git commit --amend -m "http: remove useless ternary in test"git push --forcePS your change to the PR summary is missing a space character between the colon and the next word ( PPS A forced push will invalidate my approval; I'll re-approve after you push ;) I think it will send me a notification; if you do it in the next ~½ hour, I'm around. If I haven't re-approved in like 20 mins, feel free to re-request a review from me. |
c80dcf5 to ac5433eCompareLockingReal commented Jun 17, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Thank you very much. I have learned a lot, and my foundation still needs to be strengthened 😢 |
JakobJingleheimer commented Jun 17, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Everyone starts somewhere 🙌 And thanks for the contribution! |
Uh oh!
There was an error while loading. Please reload this page.
ac5433e to 260da3fCompareLockingReal commented Jun 18, 2023
@mscdex Here~~,Can you give me an approval 😉 |
nodejs-github-bot commented Jun 20, 2023
targos commented Jun 21, 2023
nodejs-github-bot commented Jun 21, 2023
260da3f to c2bcd0dComparenodejs-github-bot commented Jun 21, 2023
LockingReal commented Jun 21, 2023
I performed a rebase operation ~ 😉❤️ |
JakobJingleheimer commented Jun 21, 2023
I think you missed Michaël's comment that it's actually unnecessary (my mistake—I'm usually supplying the PRs, not landing them 😅). I restarted the landing process though 🙂 |
LockingReal commented Jun 22, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
again 😢 ... error msg like【tap2junit: error: argument --input/-i: can't open 'cctest.tap': [Errno 2] No such file or directory: 'cctest.tap'】,Should this be a problem with ci itself ?Can we skip them😢 |
nodejs-github-bot commented Jun 22, 2023
JakobJingleheimer commented Jun 22, 2023
Did this same error occur multiple runs? It's very common to have to run CI half a dozen or more times to get a passing suite (we track this, and it's gotten better, but the ones that remain have proven difficult to squash). I checked another PR also currently going through CI, and I did not see this error there. We can't selectively skip tests, however unrelated the failures are :( I resumed the failing tests, so 🤞 |
nodejs-github-bot commented Jun 22, 2023
Landed in 0d1dfe1 |
PR-URL: #48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
PR-URL: nodejs#48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
PR-URL: nodejs#48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
PR-URL: #48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
PR-URL: #48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>

The value of check depends on whether the value of headers [': method'] is equal to "GET". The first statement uses the Ternary operation to achieve this. My change uses a simple comparison expression.