Small code review changes

This commit is contained in:
Avital Oliver
2016-01-08 10:52:25 -08:00
parent d542ffb1a9
commit fb89e46c8c
2 changed files with 22 additions and 20 deletions

View File

@@ -1,15 +1,16 @@
if (typeof global === "object" && global.process) {
// We're on the server
process = global.process;
}
} else {
if (typeof process !== "object") {
process = {};
}
if (typeof process !== "object") {
process = {};
}
if (typeof process.env !== "object") {
process.env = {};
}
if (typeof process.env !== "object") {
process.env = {};
}
if (typeof process.env.NODE_ENV !== "string") {
process.env.NODE_ENV = "development";
if (typeof process.env.NODE_ENV !== "string") {
process.env.NODE_ENV = "development";
}
}

View File

@@ -1,15 +1,16 @@
if (typeof global === "object" && global.process) {
// We're on the server, just use the real `process` object.
process = global.process;
}
} else {
if (typeof process !== "object") {
process = {};
}
if (typeof process !== "object") {
process = {};
}
if (typeof process.env !== "object") {
process.env = {};
}
if (typeof process.env !== "object") {
process.env = {};
}
if (typeof process.env.NODE_ENV !== "string") {
process.env.NODE_ENV = "production";
if (typeof process.env.NODE_ENV !== "string") {
process.env.NODE_ENV = "production";
}
}