Skip to content

Commit

Permalink
Enable no-var in eslint (#153)
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 f08998a commit 48df157
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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]
var mailer = require('nodemailer');
var smtp = require('nodemailer-smtp-transport');
let mailer = require('nodemailer');
let smtp = require('nodemailer-smtp-transport');

var transport = mailer.createTransport(
let 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
var Sendgrid = require('sendgrid')(
let Sendgrid = require('sendgrid')(
process.env.SENDGRID_API_KEY || '<your-sendgrid-api-key>'
);

var request = Sendgrid.emptyRequest({
let request = Sendgrid.emptyRequest({
method: 'POST',
path: '/v3/mail/send',
body: {
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 => {
var TESTS_PREFIX = 'gcloud-tests-';
let TESTS_PREFIX = 'gcloud-tests-';
const name = generateName('vm-with-apache');

function generateName(customPrefix) {
Expand Down

0 comments on commit 48df157

Please sign in to comment.