]> git.ipfire.org Git - pakfire.git/commitdiff
buildservice: Always set title on upload
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jan 2025 16:46:47 +0000 (16:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jan 2025 16:46:47 +0000 (16:46 +0000)
This will always be set, so there is no point in adding this check.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/buildservice.c

index 96125ee02833eb1436ef2dbec0d30e3ef902593c..ea6734cf44ca9c0aeedd50427b0bcd3cc7fcbf7b 100644 (file)
@@ -367,11 +367,9 @@ static int pakfire_buildservice_upload_payload(struct pakfire_buildservice* serv
                goto ERROR;
 
        // Set the title
-       if (filename) {
-               r = pakfire_xfer_set_title(xfer, filename);
-               if (r)
-                       goto ERROR;
-       }
+       r = pakfire_xfer_set_title(xfer, filename);
+       if (r)
+               goto ERROR;
 
        // Enable authentication
        r = pakfire_xfer_auth(xfer);