Skip to content

Commit

Permalink
fix: Remove some code that does not arrive
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Sep 15, 2021
1 parent 1f4309b commit a0da68e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/web.c
Expand Up @@ -150,11 +150,6 @@ void web_request(struct rtty *rtty, int len)
uint8_t addr[18];
void *data;

if (len == 0) {
web_reqs_free(&rtty->web_reqs);
return;
}

buffer_pull(&rtty->rb, addr, 18);

req_len = len - 18;
Expand Down

0 comments on commit a0da68e

Please sign in to comment.