Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Apr 29, 2022
1 parent edbdc85 commit 341aff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/osi-compliant-licenses.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const licenses = raw

module.exports = {
rules: [{
deny: 'deny',
policy: 'deny',
filter: ({license}) => !licenses.includes(license.toLowerCase())
}]
}
6 changes: 1 addition & 5 deletions src/main/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ const populateExtra = (target) => {
: target

res._raw = {...target}

return res
}

const populate = (config) => {
const profiles = asArray(config).map(populateExtra).map(p => {

assert.ok(p.server, 'cfg: server')
assert.ok(p.firewall, 'cfg: firewall')

Expand All @@ -31,15 +29,13 @@ const populate = (config) => {
keepAliveTimeout = 61_000,
headersTimeout = 62_000,
requestTimeout = 30_000,
preset,
extends: _extends,
}) => {
const entrypoint = normalizePath(`${_secure ? 'https' : 'http'}://${host}:${port}`)
const secure = _secure
? {
key: fs.readFileSync(_secure.key, 'utf8'),
cert: fs.readFileSync(_secure.cert, 'utf8'),
} : null
const entrypoint = normalizePath(`${secure ? 'https' : 'http'}://${host}:${port}`)

return {
secure,
Expand Down

0 comments on commit 341aff0

Please sign in to comment.