From: Ardis Lu Date: Wed, 1 Sep 2021 04:05:56 +0000 (-0700) Subject: Delete unnecessary template literals X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=99e6dd476bcd460e7ad12191dab507e534a303a1;p=sheets-db Delete unnecessary template literals --- 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); }