Skip to content

Commit

Permalink
ncm-postgresql: Remove redundant uses of format in error calls
Browse files Browse the repository at this point in the history
(Fix lint warnings)
  • Loading branch information
jrha committed Dec 2, 2024
1 parent e72ceb7 commit bae6f95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ncm-postgresql/src/main/pan/components/postgresql/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include 'quattor/types/component';

function postgresql_is_hba_db = {
# Check cardinality and type of argument.
if (ARGC != 1 || !is_string(ARGV[0])) error(format("usage: %s(string)", FUNCTION));
if (ARGC != 1 || !is_string(ARGV[0])) error("usage: %s(string)", FUNCTION);

if (match(ARGV[0], "^(all|sameuser|samerole|replication)$")) {
true;
Expand All @@ -15,7 +15,7 @@ function postgresql_is_hba_db = {

function postgresql_is_hba_address = {
# Check cardinality and type of argument.
if (ARGC != 1 || !is_string(ARGV[0])) error(format("usage: %s(string)", FUNCTION));
if (ARGC != 1 || !is_string(ARGV[0])) error("usage: %s(string)", FUNCTION);

if (match(ARGV[0], "^(samehost|samenet)$")) {
true;
Expand Down Expand Up @@ -360,7 +360,7 @@ type postgresql_component = {
};

if (exists(SELF["config"]) && (pg_port != port)) {
error(format("Legacy pg_port %s and config/main/port %s must be the same", pg_port, port));
error("Legacy pg_port %s and config/main/port %s must be the same", pg_port, port);
};

true;
Expand Down

0 comments on commit bae6f95

Please sign in to comment.