Removing an uneeded console.log call