Skip to content

Commit 9959dd2

Browse files
authored
Update web-crawler.cpp
1 parent 5e0e752 commit 9959dd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

C++/web-crawler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class Solution {
1818
const auto& from_url = result[i];
1919
const auto& name = hostname(from_url);
2020
for (const auto& to_url: htmlParser.getUrls(from_url)) {
21-
if (!lookup.count(to_url) &&
22-
name == hostname(to_url)) {
21+
if (!lookup.count(to_url) && name == hostname(to_url)) {
2322
result.emplace_back(to_url);
2423
lookup.emplace(to_url);
2524
}

0 commit comments

Comments
 (0)