mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2025-04-18 15:13:34 +00:00
Addressing comments (reverting symbolic constants to named constants)
This commit is contained in:
parent
d1e2cfb632
commit
9004fcde03
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ setTimeout(restart, 86400000);
|
|||
**Good:**
|
||||
|
||||
```ts
|
||||
// Declare them as capitalized symbolic constants.
|
||||
// Declare them as capitalized named constants.
|
||||
const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000; // 86400000
|
||||
|
||||
setTimeout(restart, MILLISECONDS_PER_DAY);
|
||||
|
|
Loading…
Add table
Reference in a new issue