commit | c2a5ab105e271c7ccc49121d677b3695017af442 | [log] [tgz] |
---|---|---|
author | dougk <[email protected]> | Thu Feb 19 01:07:47 2015 |
committer | Commit bot <[email protected]> | Thu Feb 19 01:08:43 2015 |
tree | 3b528a48c6f22ff4507a2c4acf485967c1a1b4a8 | |
parent | d5b91fc669d94d02b4293b46bbea83120b99fc08 [diff] [blame] |
Follow-up to https://codereview.chromium.org/938853002 Address comments of RCH BUG=none Review URL: https://codereview.chromium.org/934383002 Cr-Commit-Position: refs/heads/master@{#316945}
diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc index 66517ca9..259111f 100644 --- a/net/tools/quic/quic_client_bin.cc +++ b/net/tools/quic/quic_client_bin.cc
@@ -125,10 +125,7 @@ FLAGS_host = line->GetSwitchValueASCII("host"); } if (line->HasSwitch("port")) { - int port; - if (base::StringToInt(line->GetSwitchValueASCII("port"), &port)) { - FLAGS_port = port; - } else { + if (!base::StringToInt(line->GetSwitchValueASCII("port"), &FLAGS_port)) { std::cerr << "--port must be an integer\n"; return 1; }