Revert "assigning result of if statement"

This reverts commit b55a0e714258a55b68fe7047ecfdb369d571b746.