[12747] Fix static analysis repeated expression performance warning (1)