Last example in "Annotate Along" missing a } #11

Closed
neugierige opened this Issue Dec 8, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@neugierige

neugierige commented Dec 8, 2016

code snippet should read:

const readJSON = function (filename) {
  return new Promise((resolve, reject) => {
    fs.readFile(filename, { encoding: 'utf8' }, (err, res) => {
      if (err) {
        reject(err);
      } else {
        resolve(res);
      }
    });
  })
  .then(JSON.parse)
};

@payne-chris-r

@MicFin MicFin closed this in 58d750a Feb 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment