[Style] Use "result" variable name instead of "val"