From 28d1868d3810f792d92a270f476e9fac497c01d9 Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Mon, 21 Mar 2016 14:49:41 +0000 Subject: [PATCH] creates a not-found util --- node_modules/c9/is-notfound.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 node_modules/c9/is-notfound.js diff --git a/node_modules/c9/is-notfound.js b/node_modules/c9/is-notfound.js new file mode 100644 index 00000000..dcc8edba --- /dev/null +++ b/node_modules/c9/is-notfound.js @@ -0,0 +1,7 @@ +"use strict"; + + +module.exports = function isNotFound(err) { + if (err && err.code === 404) return true; + return false; +}; \ No newline at end of file