kopia lustrzana https://github.com/c9/core
creates a not-found util
rodzic
4c32d3334f
commit
28d1868d38
|
@ -0,0 +1,7 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = function isNotFound(err) {
|
||||||
|
if (err && err.code === 404) return true;
|
||||||
|
return false;
|
||||||
|
};
|
Ładowanie…
Reference in New Issue