Skip to content

Commit

Permalink
Fix linting -- we error appropriately and the exception is well const…
Browse files Browse the repository at this point in the history
…rained
  • Loading branch information
dannon committed Jan 15, 2025
1 parent 64a09ad commit 50db433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/createdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 50db433

Please sign in to comment.