From 6b32bfbb4fe73050a9bfd6eed44f0e98e24349aa Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Thu, 26 Aug 2021 23:18:30 -0700 Subject: [PATCH] Remove redundant .getScriptProperties calls --- Code.gs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Code.gs b/Code.gs index 4c6ab00..12c9722 100644 --- 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') -- 2.47.3