Skip to content

Commit

Permalink
chore: active no-unused-vars eslint rule (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel authored Oct 30, 2020
1 parent 6db5736 commit 77b6874
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"rules": {
"node/no-missing-require": ["off"],
"node/no-unpublished-require": ["off"],
"no-unused-vars": ["off"],
"node/no-deprecated-api": ["off"],
"no-process-exit": ["off"]
}
Expand Down
4 changes: 2 additions & 2 deletions cloud-sql/sqlserver/mssql/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ app.use(async (req, res, next) => {
});

// Serve the index page, showing vote tallies.
app.get('/', async (req, res, next) => {
app.get('/', async (req, res) => {
try {
// Get the 5 most recent votes.
const recentVotesQuery = pool
Expand Down Expand Up @@ -171,7 +171,7 @@ app.get('/', async (req, res, next) => {
});

// Handle incoming vote requests and inserting them into the database.
app.post('/', async (req, res, next) => {
app.post('/', async (req, res) => {
const {team} = req.body;
const timestamp = new Date();

Expand Down
3 changes: 1 addition & 2 deletions functions/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"devDependencies": {
"mocha": "^8.0.0",
"proxyquire": "^2.1.0",
"sinon": "^9.0.0",
"uuid": "^8.0.0"
"sinon": "^9.0.0"
},
"dependencies": {
"@google-cloud/storage": "^5.0.0",
Expand Down
1 change: 0 additions & 1 deletion functions/http/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
const proxyquire = require('proxyquire').noCallThru();
const sinon = require('sinon');
const assert = require('assert');
const uuid = require('uuid');

const getSample = () => {
const requestPromise = sinon
Expand Down
1 change: 0 additions & 1 deletion healthcare/datasets/system-test/datasets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

'use strict';

const path = require('path');
const assert = require('assert');
const uuid = require('uuid');
const {execSync} = require('child_process');
Expand Down
4 changes: 1 addition & 3 deletions healthcare/fhir/patchFhirResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ function main(
requestBody: patchOptions,
};

const resource = await healthcare.projects.locations.datasets.fhirStores.fhir.patch(
request
);
await healthcare.projects.locations.datasets.fhirStores.fhir.patch(request);
console.log(`Patched ${resourceType} resource`);
}

Expand Down
3 changes: 1 addition & 2 deletions jobs/v4/job_search_create_client_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ function sampleCreateClientEvent(projectId, tenantId, requestId, eventId) {
};
client
.createClientEvent(request)
.then(responses => {
const response = responses[0];
.then(() => {
console.log('Created client event');
})
.catch(err => {
Expand Down

0 comments on commit 77b6874

Please sign in to comment.