Optimized code#951
Conversation
|
Both variables are already declared before the "if" statement. Do we still need to declare them inside again? |
|
Remove the previous declarations. |
raklaptudirm
left a comment
There was a problem hiding this comment.
Format your code with standard.js
|
Nothing is changing even after formatting with standardjs. |
|
Then do that. |
|
@utsav0 Run |
|
I did it many times. It's still the same code so nothing to commit. |
|
What command are you running? |
|
standard --fix
…On Mon, 28 Mar, 2022, 11:41 PM Rak Laptudirm, ***@***.***> wrote:
What command are you running?
—
Reply to this email directly, view it on GitHub
<#951 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWV6TE2EPYAHL4XFHDG2IITVCHY4LANCNFSM5RXABLIA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Are you doing it in the code directory? |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
appgurueu
left a comment
There was a problem hiding this comment.
LGTM. Could be even shorter as let lcm = Math.max(...) but is fine either way.
|
@utsav0 You need to style your code. |
merelymyself
left a comment
There was a problem hiding this comment.
Minor formatting issue, please fix.
Co-authored-by: merelymyself <88221256+merelymyself@users.noreply.github.com>
|
@raklaptudirm after your latest change, the PR contains effectively no content anymore as the |
|
I'm doing it in the root directory of the project.
…On Tue, 29 Mar, 2022, 12:14 PM Rak Laptudirm, ***@***.***> wrote:
Are you doing it in the code directory?
—
Reply to this email directly, view it on GitHub
<#951 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWV6TE67WZC4AQNIY4CG463VCKRDNANCNFSM5RXABLIA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Welcome to the JavaScript community
Describe your change:
Checklist:
Example:
UserProfile.jsis allowed butuserprofile.js,Userprofile.js,user-Profile.js,userProfile.jsare notFixes: #{$ISSUE_NO}.