Removed unneeded nested function call in the local adapter