Skip to content

Commit

Permalink
make you explicitly set cancellable null
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Jul 2, 2024
1 parent 2bd64b7 commit 6da0858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/UpdateManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public class AppCenterCore.UpdateManager : Object {
return updates_number;
}

public async void update_all (Cancellable? cancellable = null) throws Error {
public async void update_all (Cancellable? cancellable) throws Error {
for (int i = 0; i < updates_liststore.n_items; i++) {
if (cancellable != null && cancellable.is_cancelled ()) {
return;
Expand Down

0 comments on commit 6da0858

Please sign in to comment.