Polish: assertion instead of assignment

parent 0f86b43f
......@@ -359,6 +359,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
}
}
AZ(r->fcore);
if (m == DELETE) {
if (fcore == NULL) {
r->status = 404;
......@@ -367,12 +368,12 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
tus_file_del(&fcore);
// unlocks fcore
AZ(pthread_mutex_unlock(&tussrv->mtx));
r->fcore = NULL;
r->status = 204;
}
return (0);
}
AZ(r->fcore);
if (m == GET) {
if (fcore == NULL) {
r->status = 404;
......@@ -389,6 +390,7 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
return (0);
}
AZ(r->fcore);
r->fcore = fcore;
if (m == HEAD) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment