Remove pointless null-check

This check can never be null; we already defererence this variable
before, so we would have seen an NRE here already.
This commit is contained in:
Erik Faye-Lund 2018-09-12 11:45:29 +02:00
parent efe02322ad
commit 83872710bf

View file

@ -1422,10 +1422,8 @@ public class GearyController : Geary.BaseObject {
}
// disable copy/move to the new folder
if (current_folder != null) {
main_window.main_toolbar.copy_folder_menu.enable_disable_folder(current_folder, false);
main_window.main_toolbar.move_folder_menu.enable_disable_folder(current_folder, false);
}
main_window.main_toolbar.copy_folder_menu.enable_disable_folder(current_folder, false);
main_window.main_toolbar.move_folder_menu.enable_disable_folder(current_folder, false);
update_ui();