Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // We need change Some to true only when check() returns true.
- // #1
- if(check()) {
- Some = true;
- }//if
- // #2 - После буленовой проверки явно выставлять true/false - моветон
- var b = check();
- if(b) {
- Some = b; // Выставляем неявно. Стало лучше?
- }//if
Advertisement
Add Comment
Please, Sign In to add comment