-
Notifications
You must be signed in to change notification settings - Fork 7
Change vars to let or const in boleto.js, formatter.js and edi-helper.js #32
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
base: master
Are you sure you want to change the base?
Change vars to let or const in boleto.js, formatter.js and edi-helper.js #32
Conversation
Thor99
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.
MUITO obrigado pelo PR!!! Seguem algumas sugestões de estilo :D
| let cents = exports.addTrailingZeros( | ||
| amount.substring(amount.length - 2, amount.length), | ||
| 2 | ||
| ) |
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.
O que acha de quebrar uma linha entre essas declarações (cents e integers)?
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.
Legal, @Thor99. Vou fazer isso. Obrigado!
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.
Atualizado! :D
| const startDate = moment('1997-10-07').utc().format('YYYY-MM-DD') | ||
| const parsedDate = moment(date) | ||
| .utc() | ||
| .format('YYYY-MM-DD') |
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.
O que acha de quebrar uma linha entre essas declarações (parsedDate e startDate)?
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.
Atualizado! :D
As variáveis
varsforam trocadas paraletouconstdependendo do contexto.