From 1227c7dedcfa1628f292380818d597bedfe5e7bf Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 22 Dec 2009 00:54:27 +0000 Subject: [PATCH] Simplify call site. Do a review comment I forgot to apply in a previous change. TEST=none Review URL: http://codereview.chromium.org/508012 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35124 0039d316-1c4b-4281-b951-d872f2087c98 --- gcl.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gcl.py b/gcl.py index 80250cd04..4dfed3389 100755 --- a/gcl.py +++ b/gcl.py @@ -865,16 +865,14 @@ def TryChange(change_info, args, swallow_exception): if change_info.patchset: trychange_args.extend(["--patchset", str(change_info.patchset)]) trychange_args.extend(args) - trychange.TryChange(trychange_args, - file_list=change_info.GetFileNames(), - swallow_exception=swallow_exception, - prog='gcl try') + file_list = change_info.GetFileNames() else: trychange_args.extend(args) - trychange.TryChange(trychange_args, - file_list=None, - swallow_exception=swallow_exception, - prog='gcl try') + file_list = None + trychange.TryChange(trychange_args, + file_list=file_list, + swallow_exception=swallow_exception, + prog='gcl try') def Commit(change_info, args):