Skip to content

Commit 07e8906

Browse files
authored
Fix additional lint errors
1 parent 4ffecf3 commit 07e8906

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • Node/quickstarts/auth-blocking-functions/functions

Node/quickstarts/auth-blocking-functions/functions/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const {
2121
beforeSmsSent,
2222
HttpsError,
2323
} = require("firebase-functions/identity");
24-
const {defineString} = require('firebase-functions/params');
24+
const {defineString} = require("firebase-functions/params");
2525
const admin = require("firebase-admin");
2626

2727
admin.initializeApp();
@@ -87,12 +87,12 @@ exports.checkEmailDomain = beforeEmailSent((event) => {
8787
if (!email) {
8888
// Throw an HttpsError so that Firebase Auth rejects the email sending.
8989
throw new HttpsError("invalid-argument",
90-
"No email was found in the CloudEvent");
90+
"No email was found in the CloudEvent");
9191
}
9292
if (!email.endsWith("@acme.com")) {
93-
throw new HttpsError("permission-denied",
94-
"Only users from the acme.com domain can " +
95-
"authenticate");
93+
throw new HttpsError("permission-denied",
94+
"Only users from the acme.com domain can " +
95+
"authenticate");
9696
}
9797
// [END v2emailHttpsError]
9898
});
@@ -118,7 +118,7 @@ exports.checkPhoneNumber = beforeSmsSent((event) => {
118118
if (!phoneNumber) {
119119
// Throw an HttpsError so that Firebase Auth rejects the SMS sending.
120120
throw new HttpsError("invalid-argument",
121-
"No phone number was found in the CloudEvent");
121+
"No phone number was found in the CloudEvent");
122122
}
123123

124124
// Only users of a specific region can receive SMS.

0 commit comments

Comments
 (0)