Removing useless console.log call and linting the code