[Process] correct return statement for anonymous function
[Process] remove unused variable
[Process] fix docs