summaryrefslogtreecommitdiff
path: root/src/api/service/github.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-04-14 20:45:37 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-04-14 20:45:37 +0900
commitb095efaee59572800244b34564692fd999cc4ded (patch)
tree89a2a1401b2af797bb687d0d79cfb5e9e52d987e /src/api/service/github.ts
parentFix tslint.json (diff)
downloadsharkey-b095efaee59572800244b34564692fd999cc4ded.tar.gz
sharkey-b095efaee59572800244b34564692fd999cc4ded.tar.bz2
sharkey-b095efaee59572800244b34564692fd999cc4ded.zip
Migrate to tslint 5.1.0
Diffstat (limited to 'src/api/service/github.ts')
-rw-r--r--src/api/service/github.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/service/github.ts b/src/api/service/github.ts
index 68bc03bd5f..0d6e663419 100644
--- a/src/api/service/github.ts
+++ b/src/api/service/github.ts
@@ -22,7 +22,7 @@ module.exports = async (app: express.Application) => {
const handler = new EventEmitter();
app.post('/hooks/github', (req, res, next) => {
- if ((new Buffer(req.headers['x-hub-signature'])).equals(new Buffer('sha1=' + crypto.createHmac('sha1', config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')))) {
+ if ((new Buffer(req.headers['x-hub-signature'])).equals(new Buffer(`sha1=${crypto.createHmac('sha1', config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')}`))) {
handler.emit(req.headers['x-github-event'], req.body);
res.sendStatus(200);
} else {
@@ -40,7 +40,7 @@ module.exports = async (app: express.Application) => {
// Fetch parent status
request({
- url: parent.url + '/statuses',
+ url: `${parent.url}/statuses`,
headers: {
'User-Agent': 'misskey'
}