From 50db433073c8861af34b2f6f44f330c40e75dc0e Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 15 Jan 2025 16:58:04 -0500 Subject: [PATCH] Fix linting -- we error appropriately and the exception is well constrained --- lib/createdb.js | 2 +- lib/mapper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/createdb.js b/lib/createdb.js index bafa424..b2e1d3c 100755 --- a/lib/createdb.js +++ b/lib/createdb.js @@ -6,7 +6,7 @@ const packageInfo = require("../package"); let postgresClient; try { postgresClient = require("pg-native"); -} catch (err) { +} catch { // pg-native not installed or cannot be loaded postgresClient = null; } diff --git a/lib/mapper.js b/lib/mapper.js index 8c8a2d3..68b09e8 100644 --- a/lib/mapper.js +++ b/lib/mapper.js @@ -5,7 +5,7 @@ const watchFile = require("node-watch"); let postgresClient; try { postgresClient = require("pg-native"); -} catch (err) { +} catch { // pg-native not installed or cannot be loaded postgresClient = null; }