Souvikns / diplodoc

A static site generator
Apache License 2.0
1 stars 0 forks source link

(JS-D009) Prefer ternary operator #11

Closed Souvikns closed 3 years ago

Souvikns commented 3 years ago

Description

Using an if-else statement typically results in more lines of code than a single-line ternary expression, which leads to an unnecessarily larger codebase that is more difficult to maintain. Additionally, using an if-else statement can result in defining variables using let or var solely to be reassigned within the blocks. …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/Souvikns/diplodoc/issue/JS-D009/occurrences/