[staticanalysis]: Delete an unused variable
https://bugzilla.gnome.org/show_bug.cgi?id=732020
This commit is contained in:
1 parent
4d04b148d8
commit
40f99f764e
1 file changed
+1
-2
@@ -178,7 +178,6 @@ ostree_builtin_checkout (int argc, char **argv, OstreeRepo *repo, GCancellable *
|
|||||||
const char *destination;
|
const char *destination;
|
||||||
gs_free char *resolved_commit = NULL;
|
gs_free char *resolved_commit = NULL;
|
||||||
gs_unref_object GFile *checkout_target = NULL;
|
gs_unref_object GFile *checkout_target = NULL;
|
||||||
gs_unref_object GFile *checkout_target_tmp = NULL;
|
|
||||||
|
|
||||||
context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
|
context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
|
||||||
g_option_context_add_main_entries (context, options, NULL);
|
g_option_context_add_main_entries (context, options, NULL);
|
||||||
@@ -218,7 +217,7 @@ ostree_builtin_checkout (int argc, char **argv, OstreeRepo *repo, GCancellable *
|
|||||||
checkout_target = g_file_new_for_path (destination);
|
checkout_target = g_file_new_for_path (destination);
|
||||||
|
|
||||||
if (!process_one_checkout (repo, resolved_commit, opt_subpath,
|
if (!process_one_checkout (repo, resolved_commit, opt_subpath,
|
||||||
checkout_target_tmp ? checkout_target_tmp : checkout_target,
|
checkout_target,
|
||||||
cancellable, error))
|
cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user