From: Ardis Lu Date: Fri, 27 Aug 2021 06:18:30 +0000 (-0700) Subject: Remove redundant .getScriptProperties calls X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=6b32bfbb4fe73050a9bfd6eed44f0e98e24349aa;p=sheets-db Remove redundant .getScriptProperties calls --- 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')