Fix instances of "Redundant local variable" in inspection

Signed-off-by: Cruz Julian Bishop <cruz@techern.com>