const fs = require('fs')
const readTasks = require('../readTasks.js')

const list = () => {
  console.log("List is being called")
  readTasks((tasks) => {
    const widestIDString = Math.max.apply(null, tasks.map(task => task.id.toString().length))

    if (widestIDString <= 0) {
      console.log("There are no tasks.")
      return
    }

    console.log("ID" + " ".repeat(widestIDString) + "Description")
    console.log("-".repeat(widestIDString + 1) + " " + "-".repeat(11))
    tasks.forEach((task) => {
      console.log(task.id + " ".repeat(widestIDString + 2 - task.id.toString().length) + task.task)
    })
  })
}

module.exports = list

@@ -89,46 +89,8 @@
 %3E %7B%0A
-  console.log(%22List is being called%22)%0A
   re

Remove List console.log