[AC-7327] fix using result variable before intatiation
[AC-7327] fix using result variable before intatiation

masschallenge/impact-api,masschallenge/impact-api,masschallenge/impact-api,masschallenge/impact-api