respondd: simplify null check

This commit is contained in:
lemoer 2016-08-13 16:47:11 +02:00
parent 91080757f1
commit 9517a0f698
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ void send_response(int sock, struct json_object *result, bool compress,
void serve_request(struct request_schedule *schedule, int sock) {
struct request_task* task = schedule_pop_request(schedule);
if (task == NULL)
if (!task)
return;
bool compress;