linting fix: remove function call from if-else conditional statement
Merge pull request #1109 from FredKSchott/linting-fix-func-call-in-conditional

linting fix: remove function call from if-else conditional statement