From 4304c32540d7130b20c989e3dee42d7a97fda2a6 Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Tue, 22 Mar 2016 14:40:52 +0100 Subject: [PATCH] Revert "Revert "Refactor clone api"" --- 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