diff --git a/libraries/o-error/doc/demo.js b/libraries/o-error/doc/demo.js index ce906df5a8..845a2bf671 100644 --- a/libraries/o-error/doc/demo.js +++ b/libraries/o-error/doc/demo.js @@ -1,5 +1,7 @@ // This is the code from the README. +const OError = require('..') + const demoDatabase = { findUser(id, callback) { process.nextTick(() => { @@ -36,8 +38,6 @@ sayHi1(43, (err, result) => { } }) -const OError = require('.') - function sayHi2(userId, callback) { demoDatabase.findUser(userId, (err, user) => { if (err) return callback(OError.tag(err))