Run prettier (#1866)
Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
'use strict';
|
||||
'use strict'
|
||||
|
||||
const crypto = require('crypto');
|
||||
const { serializeDebugInfo } = require('../../../lib/github-auth');
|
||||
const serverSecrets = require('../../../lib/server-secrets');
|
||||
const crypto = require('crypto')
|
||||
const { serializeDebugInfo } = require('../../../lib/github-auth')
|
||||
const serverSecrets = require('../../../lib/server-secrets')
|
||||
|
||||
function setRoutes(server) {
|
||||
// Allow the admin to obtain the tokens for operational and debugging
|
||||
@@ -21,13 +21,13 @@ function setRoutes(server) {
|
||||
if (!crypto.timingSafeEqual(ask.password, serverSecrets.shieldsSecret)) {
|
||||
// An unknown entity tries to connect. Let the connection linger for a minute.
|
||||
return setTimeout(function() {
|
||||
end('Invalid secret.');
|
||||
}, 10000);
|
||||
end('Invalid secret.')
|
||||
}, 10000)
|
||||
}
|
||||
end(serializeDebugInfo({ sanitize: false }));
|
||||
});
|
||||
end(serializeDebugInfo({ sanitize: false }))
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
setRoutes,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user