Skip to content

Commit

Permalink
Fixes indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay committed Dec 17, 2023
1 parent c76c15b commit 20de041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/backend/distributed/deparser/deparse_database_stmts.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ DeparseDatabaseCommentStmt(Node *node)

char *databaseName = strVal(stmt->object);

char *comment = stmt->comment!=NULL?quote_literal_cstr(stmt->comment):"NULL";
char *comment = stmt->comment != NULL ? quote_literal_cstr(stmt->comment) : "NULL";

appendStringInfo(&str, "COMMENT ON DATABASE %s IS %s;",databaseName,comment);
appendStringInfo(&str, "COMMENT ON DATABASE %s IS %s;", databaseName, comment);

return str.data;
}
4 changes: 2 additions & 2 deletions src/backend/distributed/deparser/deparse_role_stmts.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,9 @@ DeparseRoleCommentStmt(Node *node)
initStringInfo(&str);

char *roleName = strVal(stmt->object);
char *comment = stmt->comment!=NULL?quote_literal_cstr(stmt->comment):"NULL";
char *comment = stmt->comment != NULL ? quote_literal_cstr(stmt->comment) : "NULL";

appendStringInfo(&str, "COMMENT ON ROLE %s IS %s;",roleName,comment);
appendStringInfo(&str, "COMMENT ON ROLE %s IS %s;", roleName, comment);

return str.data;
}

0 comments on commit 20de041

Please sign in to comment.