]> git.ardis.lu - sheets-db/commitdiff
Delete unnecessary template literals
authorArdis Lu <ardisglu@gmail.com>
Wed, 1 Sep 2021 04:05:56 +0000 (21:05 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 1 Sep 2021 04:05:56 +0000 (21:05 -0700)
Code.gs

diff --git a/Code.gs b/Code.gs
index e64041233ade8bf272ad835b06b84c156727f37b..d2e0c8aeddbfa1e51d449c5f090c46e7f5a6cf00 100644 (file)
--- 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);
 }
This page took 0.040643 seconds and 4 git commands to generate.