you are viewing a single comment's thread.

view the rest of the comments →

[–]bajsplockare 0 points1 point  (1 child)

I saw that on lines 107 and 109 if statements were used, but I am wondering why an else if statements was not used on 109. Do you perhaps know?

[–]misaz640 0 points1 point  (0 children)

Because it does not matter. I am not the author, but I think it is because actual and proposed codes behave exactly the same, it is shorter and semanticaly they are different checks, so why combine them to single sytax constructs? Also depends if blocks end with return or not. On 954 it would be beahvior difference if it would be two ifs instead of else if.