-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
http: remove useless ternary in test #48481
Conversation
@JakobJingleheimer I saw that you have been performing a codereview operation recently. Can you help me check it ~ 😉 |
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 🙌
Note that your commit summary does not follow the required pattern. I think it should be |
I have corrected it, thank you for your guidance ❤️ |
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 --force PS 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
ac5433e
Compare
Thank you very much. I have learned a lot, and my foundation still needs to be strengthened 😢 |
Everyone starts somewhere 🙌 And thanks for the contribution! |
ac5433e
to
260da3f
Compare
@mscdex Here~~,Can you give me an approval 😉 |
260da3f
to
c2bcd0d
Compare
I performed a rebase operation ~ 😉❤️ |
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 🙂 |
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😢 |
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 🤞 |
Landed in 0d1dfe1 |
PR-URL: #48481 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
PR-URL: nodejs#48481 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
PR-URL: nodejs#48481 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
PR-URL: #48481 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
PR-URL: #48481 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
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.