mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Small code review changes
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user