Removed unused variable assignment in ternary function.

...already was assigning its value to toValue. This likely was not causing a bug, but could cause compilers to less efficient, and some IDE's validations may not like it.