diff --git a/src/index.js b/src/index.js index 14c6a0d6a..b9586402a 100644 --- a/src/index.js +++ b/src/index.js @@ -128,10 +128,7 @@ function PubSub(options) { this.api = {}; this.auth = googleAuth(this.options); - this.projectId = - this.options.projectId || - process.env.GCLOUD_PROJECT || - PROJECT_ID_PLACEHOLDER; + this.projectId = this.options.projectId || PROJECT_ID_PLACEHOLDER; if (this.options.promise) { this.Promise = this.options.promise;