From 99e6dd476bcd460e7ad12191dab507e534a303a1 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 31 Aug 2021 21:05:56 -0700 Subject: [PATCH] Delete unnecessary template literals --- Code.gs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code.gs b/Code.gs index e640412..d2e0c8a 100644 --- a/Code.gs +++ b/Code.gs @@ -125,10 +125,10 @@ function uploadToBackblaze() { const getUploadUrlOptions = { 'method': 'POST', 'headers': { - 'Authorization': `${authToken}` + 'Authorization': authToken }, 'payload': JSON.stringify({ - 'bucketId': `${bucketId}` + 'bucketId': bucketId }) }; const getUploadUrlResponse = UrlFetchApp.fetch(`${apiUrl}/b2api/v2/b2_get_upload_url`, getUploadUrlOptions); @@ -162,7 +162,7 @@ function uploadToBackblaze() { 'contentLength': contentLength, 'payload': data } - const uploadResponse = UrlFetchApp.fetch(`${uploadUrl}`, uploadOptions); + const uploadResponse = UrlFetchApp.fetch(uploadUrl, uploadOptions); - UI.alert('Success!', `Google Drive file was successfully uploaded to Backblaze.`, UI.ButtonSet.OK); + UI.alert('Success!', 'Google Drive file was successfully uploaded to Backblaze.', UI.ButtonSet.OK); } -- 2.47.3