Skip to content

Commit

Permalink
Remove duplicate check (#1740) (#1831)
Browse files Browse the repository at this point in the history
This commit removes [a benign] redundant check for label validity

Co-authored-by: jberzy <[email protected]>
  • Loading branch information
jrgemignani and jberzy authored May 3, 2024
1 parent b7623d1 commit d8cb155
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/backend/commands/label_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,6 @@ void create_label(char *graph_name, char *label_name, char label_type,
errmsg("label name is invalid")));
}

if (!is_valid_label(label_name, label_type))
{
ereport(ERROR, (errcode(ERRCODE_UNDEFINED_SCHEMA),
errmsg("label name is invalid")));
}

cache_data = search_graph_name_cache(graph_name);
if (!cache_data)
{
Expand Down

0 comments on commit d8cb155

Please sign in to comment.