]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/pull-job.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / import / pull-job.c
index 3e20905d79647162d32e231e06f511bc0d8f04fb..995a652ec339535ba36445c00da053a87d95afd7 100644 (file)
@@ -108,7 +108,7 @@ void pull_job_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result) {
         if (curl_easy_getinfo(curl, CURLINFO_PRIVATE, (char **)&j) != CURLE_OK)
                 return;
 
-        if (!j || j->state == PULL_JOB_DONE || j->state == PULL_JOB_FAILED)
+        if (!j || IN_SET(j->state, PULL_JOB_DONE, PULL_JOB_FAILED))
                 return;
 
         if (result != CURLE_OK) {