Skip to content

Commit

Permalink
fixup! url: use foreach-style C++ loop
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Sep 28, 2018
1 parent bcad6b4 commit 2440d9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/node_url.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ class URL {

std::string path() const {
std::string ret;
for (const auto& i : context_.path) {
ret += '/';
ret += i;
for (const std::string& i : context_.path) {
ret += '/' + i;
}
return ret;
}
Expand Down

0 comments on commit 2440d9c

Please sign in to comment.