Skip to content

Commit 90981c9

Browse files
committed
Linter complaints (for code not changed in ages)
1 parent 397766b commit 90981c9

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

dist/gssql.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ class Schema {
17081708
try {
17091709
fieldVariants = this.getColumnNameVariants(baseColumnName);
17101710
}
1711-
catch (ex) {
1711+
catch {
17121712
throw new Error(`Invalid column title: ${baseColumnName}`);
17131713
}
17141714
const columnName = fieldVariants.columnName;
@@ -3326,7 +3326,7 @@ class SqlServerFunctions {
33263326
functionString = functionString.replace(args[0], replacement);
33273327
args = this.parseFunctionArgs(func, functionString);
33283328
}
3329-
catch (ex) {
3329+
catch {
33303330
throw new Error(`Internal Error. Function is missing. ${func}`);
33313331
}
33323332
}
@@ -7272,7 +7272,7 @@ class TableData { // skipcq: JS-0128
72727272
const lock = LockService.getScriptLock();
72737273
try {
72747274
lock.waitLock(100000); // wait 100 seconds for others' use of the code section and lock to stop and then proceed
7275-
} catch (e) {
7275+
} catch {
72767276
throw new Error("Cache lock failed");
72777277
}
72787278

@@ -7337,7 +7337,7 @@ class TableData { // skipcq: JS-0128
73377337
Logger.log(`Named Range Data Loaded: ${tableNamedRange}. Items=${output.length}`);
73387338
}
73397339
}
7340-
catch (ex) {
7340+
catch {
73417341
throw new Error(`Error reading table data: ${tableNamedRange}`);
73427342
}
73437343

@@ -7373,7 +7373,7 @@ class TableData { // skipcq: JS-0128
73737373
const lock = LockService.getScriptLock();
73747374
try {
73757375
lock.waitLock(100000); // wait 100 seconds for others' use of the code section and lock to stop and then proceed
7376-
} catch (e) {
7376+
} catch {
73777377
throw new Error("Cache lock failed");
73787378
}
73797379
cache.putAll(putObject, cacheSeconds);
@@ -7521,7 +7521,7 @@ class ScriptSettings { // skipcq: JS-0128
75217521
try {
75227522
this.scriptProperties.setProperty(propertyKey, jsonData);
75237523
}
7524-
catch (ex) {
7524+
catch {
75257525
throw new Error("Cache Limit Exceeded. Long cache times have limited storage available. Only cache small tables for long periods.");
75267526
}
75277527
}
@@ -7615,7 +7615,7 @@ class ScriptSettings { // skipcq: JS-0128
76157615
try {
76167616
propertyValue = JSON.parse(allProperties[key]);
76177617
}
7618-
catch (e) {
7618+
catch {
76197619
// A property that is NOT cached by CACHEFINANCE
76207620
continue;
76217621
}

src/ScriptSettings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ScriptSettings { // skipcq: JS-0128
6161
try {
6262
this.scriptProperties.setProperty(propertyKey, jsonData);
6363
}
64-
catch (ex) {
64+
catch {
6565
throw new Error("Cache Limit Exceeded. Long cache times have limited storage available. Only cache small tables for long periods.");
6666
}
6767
}
@@ -155,7 +155,7 @@ class ScriptSettings { // skipcq: JS-0128
155155
try {
156156
propertyValue = JSON.parse(allProperties[key]);
157157
}
158-
catch (e) {
158+
catch {
159159
// A property that is NOT cached by CACHEFINANCE
160160
continue;
161161
}

src/Table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class Schema {
482482
try {
483483
fieldVariants = this.getColumnNameVariants(baseColumnName);
484484
}
485-
catch (ex) {
485+
catch {
486486
throw new Error(`Invalid column title: ${baseColumnName}`);
487487
}
488488
const columnName = fieldVariants.columnName;

src/TableData.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class TableData { // skipcq: JS-0128
223223
const lock = LockService.getScriptLock();
224224
try {
225225
lock.waitLock(100000); // wait 100 seconds for others' use of the code section and lock to stop and then proceed
226-
} catch (e) {
226+
} catch {
227227
throw new Error("Cache lock failed");
228228
}
229229

@@ -288,7 +288,7 @@ class TableData { // skipcq: JS-0128
288288
Logger.log(`Named Range Data Loaded: ${tableNamedRange}. Items=${output.length}`);
289289
}
290290
}
291-
catch (ex) {
291+
catch {
292292
throw new Error(`Error reading table data: ${tableNamedRange}`);
293293
}
294294

@@ -324,7 +324,7 @@ class TableData { // skipcq: JS-0128
324324
const lock = LockService.getScriptLock();
325325
try {
326326
lock.waitLock(100000); // wait 100 seconds for others' use of the code section and lock to stop and then proceed
327-
} catch (e) {
327+
} catch {
328328
throw new Error("Cache lock failed");
329329
}
330330
cache.putAll(putObject, cacheSeconds);

src/Views.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ class SqlServerFunctions {
15591559
functionString = functionString.replace(args[0], replacement);
15601560
args = this.parseFunctionArgs(func, functionString);
15611561
}
1562-
catch (ex) {
1562+
catch {
15631563
throw new Error(`Internal Error. Function is missing. ${func}`);
15641564
}
15651565
}

0 commit comments

Comments
 (0)