Skip to content

Commit

Permalink
Remove duplicate check
Browse files Browse the repository at this point in the history
This commit removes [a benign] redundant check for label validity
  • Loading branch information
jberzy committed Apr 9, 2024
1 parent 00e0c58 commit 2af4351
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 @@ -265,12 +265,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 2af4351

Please sign in to comment.