Skip to content

Commit 2c30b7a

Browse files
committed
Cleanup unnecessary try catch blocks
1 parent 766e5c6 commit 2c30b7a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Core/Package.vala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,7 @@ public class AppCenterCore.Package : Object {
487487

488488
public async void uninstall () throws Error {
489489
if (state == State.INSTALLED || state == State.UPDATE_AVAILABLE) {
490-
try {
491-
yield perform_operation (State.REMOVING);
492-
} catch (Error e) {
493-
throw e;
494-
}
490+
yield perform_operation (State.REMOVING);
495491
}
496492

497493
throw new PackageUninstallError.APP_STATE_NOT_INSTALLED (_("Application state not set as installed in AppCenter for package: %s").printf (name));

0 commit comments

Comments
 (0)