Sast error: mismatch with function's return type
