Remove unused variable
Don't set cmds to a local variable twice