Skip to content

Commit

Permalink
fix the lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger committed Sep 18, 2024
1 parent 17bf6b3 commit 49fc0fd
Show file tree
Hide file tree
Showing 6 changed files with 3,069 additions and 2,559 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
'env': {
'node': true
env: {
node: true
},
'extends': 'standard',
'rules': {
'indent': ['error', 2],
'semi': [2, 'always'],
extends: 'standard',
rules: {
indent: ['error', 2],
semi: [2, 'always'],
'no-extra-semi': 2,
'camelcase': 'off',
'quotes': ['error', 'single', { allowTemplateLiterals: true }]
camelcase: 'off',
quotes: ['error', 'single', { allowTemplateLiterals: true }]
}
};
13 changes: 7 additions & 6 deletions checker/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

const fetch = require('node-fetch');
const github_app = require('github-app');
const openwhisk = require('openwhisk');
const utils = require('../utils.js');
Expand Down Expand Up @@ -37,9 +38,9 @@ async function main (params) {
if (isMergeQueue) {
const res = await set_green_is_bot(ow, {
commit_sha: params.merge_group.head_sha,
org: params.repository.owner.login,
repo: params.repository.name,
start_time: (new Date()).toISOString(),
org: params.repository.owner.login,
repo: params.repository.name,
start_time: (new Date()).toISOString()
});
return res;
}
Expand Down Expand Up @@ -161,12 +162,12 @@ async function check_cla (ow, args) {
method: 'GET',
headers: {
'cache-control': 'no-cache',
'Access-Token': access_token,
},
'Access-Token': access_token
}
});

if (!fetchResponse.ok) {
return utils.action_error(e, 'Error retrieving Adobe Sign agreements.');
return utils.action_error(new Error('Failed to fetch'), 'Error retrieving Adobe Sign agreements.');
}

response = await fetchResponse.json();
Expand Down
2 changes: 1 addition & 1 deletion lookup/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function lookup (args) {
}

async function lookupSingleAgreement (args, agreement) {
const fetchResponse = await fetch(`https://api.na1.echosign.com:443/api/rest/${args.apiVersion}/agreements/${agreement}/formData`,{
const fetchResponse = await fetch(`https://api.na1.echosign.com:443/api/rest/${args.apiVersion}/agreements/${agreement}/formData`, {
method: 'GET',
headers: {
'cache-control': 'no-cache',
Expand Down
Loading

0 comments on commit 49fc0fd

Please sign in to comment.