Skip to content

[server] Force the declaration of variable with const, when the variable is not reassigned.

Antoine requested to merge ZeHiro/kresus:prefer-const into master

Most changes from the MR are generated by yarn pretty. However, some more changes were needed :

  • in server/controllers/categories.js : assignement in a single line.
  • in server/controlles/ofx.js: needed to create an intermediate variable for timezoneOffset, named normalizedTimezoneOffset, to avoid reassignement.

These files then require extra attention.

Edited by Antoine

Merge request reports

Loading