Commit a0ae2fd4 authored by Christian Hergert's avatar Christian Hergert
Browse files

project-tree: ensure we aren't hitting any unexpected cases

parent ab07fbed
......@@ -467,7 +467,7 @@ gb_project_tree_actions_new (GbProjectTree *self,
GtkPopover *popover;
IdeProjectFile *project_file;
GFile *file = NULL;
gboolean is_dir;
gboolean is_dir = FALSE;
g_assert (GB_IS_PROJECT_TREE (self));
g_assert ((file_type == G_FILE_TYPE_DIRECTORY) ||
......@@ -496,6 +496,11 @@ again:
file = ide_vcs_get_working_directory (vcs);
is_dir = TRUE;
}
else
{
g_assert_not_reached ();
return;
}
g_assert (G_IS_FILE (file));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment