Skip to content

Commit d7357e5

Browse files
author
Tim Mendoza
committed
Fix linting issue
1 parent 7334d7b commit d7357e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/serverless/functions/token.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports.handler = async (context, event, callback) => {
5353
if (create_room) {
5454
const client = context.getTwilioClient();
5555
const conversationsClient = client.conversations.services(CONVERSATIONS_SERVICE_SID);
56-
let room, conversation;
56+
let room;
5757

5858
try {
5959
// See if a room already exists
@@ -76,11 +76,11 @@ module.exports.handler = async (context, event, callback) => {
7676

7777
try {
7878
// See if conversation already exists
79-
conversation = await conversationsClient.conversations(room.sid).fetch();
79+
await conversationsClient.conversations(room.sid).fetch();
8080
} catch (e) {
8181
try {
8282
// If conversation doesn't exist, create it.
83-
conversation = await conversationsClient.conversations.create({ uniqueName: room.sid });
83+
await conversationsClient.conversations.create({ uniqueName: room.sid });
8484
} catch (e) {
8585
response.setStatusCode(500);
8686
response.setBody({

0 commit comments

Comments
 (0)