Commit cf2c3819 authored by Alexandre Frechette's avatar Alexandre Frechette Committed by Commit Bot

Removing empty line from celltolang data reader.

Bug: 850947
Change-Id: I5dc5cd129f5755006f55df12ec83c97c21a57c72
Reviewed-on: https://chromium-review.googlesource.com/c/1426059Reviewed-by: default avataranthonyvd <anthonyvd@chromium.org>
Commit-Queue: Alexandre Frechette <frechette@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626080}
parent ece95a5b
......@@ -38,9 +38,6 @@ const std::map<S2LatLng, std::string> GetData(int rank) {
std::vector<std::string> lines = base::SplitString(
data, "\n", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
for (size_t i = 0; i < lines.size(); ++i) {
// TODO(frechette) Remove once we ensured no empty line in data file.
if (lines[i].empty())
continue;
std::vector<std::string> fields = base::SplitString(
lines[i], ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
CHECK_EQ(3u, fields.size());
......
Markdown is supported
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