]> git.ardis.lu - sheets-db/commitdiff
Remove redundant .getScriptProperties calls
authorArdis Lu <ardisglu@gmail.com>
Fri, 27 Aug 2021 06:18:30 +0000 (23:18 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 27 Aug 2021 06:18:30 +0000 (23:18 -0700)
Code.gs

diff --git a/Code.gs b/Code.gs
index 4c6ab00a0ab995a037df6f0535748a19da3fe65f..12c9722739286dfe0c0837f1856b9bf8f4150216 100644 (file)
--- a/Code.gs
+++ b/Code.gs
@@ -1,9 +1,10 @@
 const UI = SpreadsheetApp.getUi();
 const WORKBOOK = SpreadsheetApp.getActive();
 
-const FILE_ID = PropertiesService.getScriptProperties().getProperty('FILE_ID');
-const BACKBLAZE_ID = PropertiesService.getScriptProperties().getProperty('BACKBLAZE_ID');
-const BACKBLAZE_KEY = PropertiesService.getScriptProperties().getProperty('BACKBLAZE_KEY');
+const PROPERTIES = PropertiesService.getScriptProperties();
+const FILE_ID = PROPERTIES.getProperty('FILE_ID');
+const BACKBLAZE_ID = PROPERTIES.getProperty('BACKBLAZE_ID');
+const BACKBLAZE_KEY = PROPERTIES.getProperty('BACKBLAZE_KEY');
 
 function onOpen() {
   UI.createMenu('SQLite')
This page took 0.078947 seconds and 4 git commands to generate.