Skip to content

Commit feaa0e5

Browse files
author
Jamie Curnow
committed
Removed use strict
1 parent af83cb5 commit feaa0e5

File tree

131 files changed

+23
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+23
-273
lines changed

src/backend/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const path = require('path');
42
const express = require('express');
53
const bodyParser = require('body-parser');

src/backend/db.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const config = require('config');
42

53
if (!config.has('database')) {

src/backend/importer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
'use strict';
2-
31
const fs = require('fs');
42
const logger = require('./logger').import;
53
const utils = require('./lib/utils');
64
const batchflow = require('batchflow');
7-
const debug_mode = process.env.NODE_ENV !== 'production';
5+
const debug_mode = process.env.NODE_ENV !== 'production' || !!process.env.DEBUG;
86

97
const internalProxyHost = require('./internal/proxy-host');
108
const internalRedirectionHost = require('./internal/redirection-host');

src/backend/internal/access-list.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const _ = require('lodash');
42
const fs = require('fs');
53
const batchflow = require('batchflow');

src/backend/internal/audit-log.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const error = require('../lib/error');
42
const auditLogModel = require('../models/audit-log');
53

src/backend/internal/dead-host.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const _ = require('lodash');
42
const error = require('../lib/error');
53
const deadHostModel = require('../models/dead_host');

src/backend/internal/ip_ranges.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
'use strict';
2-
31
const https = require('https');
42
const fs = require('fs');
5-
const _ = require('lodash');
63
const logger = require('../logger').ip_ranges;
74
const error = require('../lib/error');
85
const internalNginx = require('./nginx');

src/backend/internal/nginx.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const Liquid = require('liquidjs');
44
const logger = require('../logger').nginx;
55
const utils = require('../lib/utils');
66
const error = require('../lib/error');
7-
const debug_mode = process.env.NODE_ENV !== 'production';
7+
const debug_mode = process.env.NODE_ENV !== 'production' || !!process.env.DEBUG;
88

99
const internalNginx = {
1010

@@ -132,7 +132,7 @@ const internalNginx = {
132132

133133
/**
134134
* Generates custom locations
135-
* @param {Object} host
135+
* @param {Object} host
136136
* @returns {Promise}
137137
*/
138138
renderLocations: (host) => {
@@ -146,7 +146,7 @@ const internalNginx = {
146146
return;
147147
}
148148

149-
let renderer = new Liquid();
149+
let renderer = new Liquid();
150150
let renderedLocations = '';
151151

152152
const locationRendering = async () => {
@@ -207,7 +207,7 @@ const internalNginx = {
207207
}
208208

209209
if (host.locations) {
210-
origLocations = [].concat(host.locations);
210+
origLocations = [].concat(host.locations);
211211
locationsPromise = internalNginx.renderLocations(host).then((renderedLocations) => {
212212
host.locations = renderedLocations;
213213
});

src/backend/internal/redirection-host.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const _ = require('lodash');
42
const error = require('../lib/error');
53
const redirectionHostModel = require('../models/redirection_host');

src/backend/internal/report.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const internalProxyHost = require('./proxy-host');
42
const internalRedirectionHost = require('./redirection-host');
53
const internalDeadHost = require('./dead-host');

0 commit comments

Comments
 (0)