mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2025-04-18 15:13:34 +00:00
Change implied variable name for consistency
The good example passes a variable with a different, less understandable name than the bad example. The change is about the function name, not the variable name, so for consistency this should be `email` instead of `node`
This commit is contained in:
parent
2172a87caf
commit
2388389a03
1 changed files with 1 additions and 1 deletions
|
@ -878,7 +878,7 @@ function isEmailUsed(email: string): boolean {
|
|||
// ...
|
||||
}
|
||||
|
||||
if (!isEmailUsed(node)) {
|
||||
if (!isEmailUsed(email)) {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue