removes optional chaining

This commit is contained in:
James
2020-10-28 10:29:37 -04:00
parent 29e148763a
commit 0ac24bc4f2

View File

@@ -101,7 +101,7 @@ class Payload {
// If not initializing locally, set up HTTP routing
if (!this.config.local) {
this.express = options.express;
if (this.config.rateLimit?.trustProxy) this.express.set('trust proxy', 1);
if (this.config.rateLimit && this.config.rateLimit.trustProxy) this.express.set('trust proxy', 1);
this.initAdmin();