Skip to content

Commit 91d3dc7

Browse files
committed
remove meanless condition
1 parent 096576a commit 91d3dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void load() {
8686
NodeId s, e;
8787
Distance d;
8888
for (std::string::size_type idx=0, pos=0, prev_pos=0; pos <= line.length(); pos++) {
89-
if (line[pos] == ',' || line[pos] == '\r' || pos == line.length()) {
89+
if (line[pos] == ',' || pos == line.length()) {
9090
const auto field = std::string_view{line}.substr(prev_pos, pos-prev_pos);
9191
switch (idx) {
9292
case 2: s = stoi_unchecked(field); break;

0 commit comments

Comments
 (0)