Skip to content

Commit 9e16afc

Browse files
authored
FlatpakBackend: Improve XML parsing efficiency (#1733)
* FlatpakBackend: Improve XML parsing efficiency Potential minor efficiency follow up to #1731
1 parent 5dc6f90 commit 9e16afc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Core/FlatpakBackend.vala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ public class AppCenterCore.FlatpakBackend : Backend, Object {
938938
string bundle_id = iter->get_content ();
939939
// If it's not an app, we don't care about sorting it
940940
if (!bundle_id.has_prefix ("app/")) {
941-
continue;
941+
break;
942942
}
943943

944944
// If it's a stable branch of an app, put it on top of the array
@@ -948,6 +948,8 @@ public class AppCenterCore.FlatpakBackend : Backend, Object {
948948
} else {
949949
sorted_components.add (component);
950950
}
951+
952+
break;
951953
}
952954
}
953955
}

0 commit comments

Comments
 (0)