Skip to content

Commit 7f7b5db

Browse files
committed
fix: standardjs issues
1 parent 17e68e7 commit 7f7b5db

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

src/controllers/webhook/package.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
'use strict'
1+
'use strict'
22

3-
const utils = require('../../logic/utils')
4-
5-
function packageHandler (eventObject) {
6-
utils.flushCache()
7-
}
8-
9-
module.exports = {
10-
packageHandler
11-
}
12-
3+
const utils = require('../../logic/utils')
4+
5+
function packageHandler (eventObject) {
6+
utils.flushCache()
7+
}
8+
9+
module.exports = {
10+
packageHandler
11+
}

src/logic/retrievePackageData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = require('../../package.json').config
66

77
async function getOrgPackageData (scope, token, host) {
88
// This is the object all the data is added to and cached in memory once
9-
let resultObject = {
9+
const resultObject = {
1010
all: {},
1111
packages: {}
1212
}

src/logic/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const request = function (url, token, host) {
5353

5454
return new Promise((resolve, reject) => {
5555
const options = {
56-
url: url,
56+
url,
5757
method: 'GET',
5858
headers: {
5959
Accept: 'application/json;',

src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const routes = [
1414
{ route: '/', method: method.GET, controller: home },
1515
{ route: '/error', method: method.GET, render: 'errors/error' },
1616
{ route: '/upm/@:scope/:packageName', method: method.GET, controller: upm },
17-
{ route: '/upm/@:scope/-/all', method: method.GET, controller: upmAll },
17+
{ route: '/upm/@:scope/-/all', method: method.GET, controller: upmAll }
1818
]
1919

2020
module.exports = {

src/webhooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
// Webhook setup
4-
const { Webhooks, createNodeMiddleware } = require("@octokit/webhooks")
4+
const { Webhooks, createNodeMiddleware } = require('@octokit/webhooks')
55
const webhooks = new Webhooks({ secret: process.env.GITHUB_SECRET || '' })
66
const logger = require('./logic/winston')
77

0 commit comments

Comments
 (0)