Skip to content

Commit

Permalink
koekeishiya#705 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya authored and unrevre committed Nov 15, 2020
1 parent 0c5b3e7 commit c12ace1
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,23 +833,17 @@ static struct selector parse_dir_selector(FILE *rsp, char **message)
static void handle_domain_config(FILE *rsp, struct token domain, char *message)
{
uint64_t sel_sid = 0;
bool found_selector = true;

struct token selector = get_token(&message);
struct token command = selector;

if (token_equals(selector, SELECTOR_CONFIG_SPACE)) {
bool found_selector = token_equals(selector, SELECTOR_CONFIG_SPACE);
if (found_selector) {
struct selector space_selector = parse_space_selector(rsp, &message, 0);
if (space_selector.did_parse && space_selector.sid) {
sel_sid = space_selector.sid;
} else {
return;
}
} else {
found_selector = false;
}
if (!space_selector.did_parse || !space_selector.sid) return;

if (found_selector) command = get_token(&message);
sel_sid = space_selector.sid;
command = get_token(&message);
}

if (token_equals(command, COMMAND_CONFIG_DEBUG_OUTPUT)) {
struct token value = get_token(&message);
Expand Down

0 comments on commit c12ace1

Please sign in to comment.