Skip to content

Commit

Permalink
Enable prefer-const in the eslint config (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and Ace Nassri committed Nov 21, 2022
1 parent 48df157 commit ce47c47
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions compute/mailjet.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
'use strict';

// [START send]
let mailer = require('nodemailer');
let smtp = require('nodemailer-smtp-transport');
const mailer = require('nodemailer');
const smtp = require('nodemailer-smtp-transport');

let transport = mailer.createTransport(
const transport = mailer.createTransport(
smtp({
host: 'in.mailjet.com',
port: 2525,
Expand Down
4 changes: 2 additions & 2 deletions compute/sendgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

// [START send]
// This sample is based off of https://www.npmjs.com/package/sendgrid#without-mail-helper-class
let Sendgrid = require('sendgrid')(
const Sendgrid = require('sendgrid')(
process.env.SENDGRID_API_KEY || '<your-sendgrid-api-key>'
);

let request = Sendgrid.emptyRequest({
const request = Sendgrid.emptyRequest({
method: 'POST',
path: '/v3/mail/send',
body: {
Expand Down
2 changes: 1 addition & 1 deletion compute/startup-script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function listVms(callback) {
.getVMs()
.then(data => {
const vms = data[0];
let results = vms.map(vm => vm.getMetadata());
const results = vms.map(vm => vm.getMetadata());
return Promise.all(results);
})
.then(res =>
Expand Down
2 changes: 1 addition & 1 deletion compute/startup-script/system-test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test.cb(`should list vms`, t => {
});

test.cb(`should create vm`, t => {
let TESTS_PREFIX = 'gcloud-tests-';
const TESTS_PREFIX = 'gcloud-tests-';
const name = generateName('vm-with-apache');

function generateName(customPrefix) {
Expand Down

0 comments on commit ce47c47

Please sign in to comment.