Skip to content

Commit 7a52280

Browse files
author
Corentin Noël
authored
AbstractView: Safely cast to AppInfoView (#1725)
We are checking the type in the previous condition. Silence the possible null.
1 parent a966bef commit 7a52280

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Views/AbstractView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public abstract class AppCenter.AbstractView : Gtk.Stack {
3232
// Transition finished
3333
if (!transition_running) {
3434
foreach (weak Gtk.Widget child in get_children ()) {
35-
if (child is Views.AppInfoView && (child as Views.AppInfoView).to_recycle) {
35+
if (child is Views.AppInfoView && ((Views.AppInfoView) child).to_recycle) {
3636
child.destroy ();
3737
}
3838
}

0 commit comments

Comments
 (0)