Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jan 15, 2025
1 parent 2e1ca60 commit 64a09ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ var updateFromSqlite = function (path, map) {

var updateFromPostgres = function (path, map) {
if (!postgresClient) {
console.error("Error: pg-native is not installed. Cannot update from PostgreSQL database.");
console.error(
"Error: pg-native is not installed. Cannot update from PostgreSQL database.",
);
process.exit(1);
}
var db = new postgresClient();
Expand Down Expand Up @@ -130,7 +132,9 @@ var updateFromPostgres = function (path, map) {

var watchPostgres = function (path, loadMap, pollingInterval) {
if (!postgresClient) {
console.error("Error: pg-native is not installed. Cannot watch PostgreSQL database.");
console.error(
"Error: pg-native is not installed. Cannot watch PostgreSQL database.",
);
process.exit(1);
}
// poll the database every `pollingInterval` seconds
Expand Down

0 comments on commit 64a09ad

Please sign in to comment.