Skip to content

Commit

Permalink
ncm-postgresql: Fix wrapping and indentation in pan
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Dec 2, 2024
1 parent 31e9306 commit e72ceb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ncm-postgresql/src/main/pan/components/postgresql/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +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(format("usage: %s(string)", FUNCTION));

if (match(ARGV[0], "^(all|sameuser|samerole|replication)$")) {
true;
Expand All @@ -16,8 +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(format("usage: %s(string)", FUNCTION));

if (match(ARGV[0], "^(samehost|samenet)$")) {
true;
Expand Down

0 comments on commit e72ceb7

Please sign in to comment.