Skip to content

Commit 2440d9c

Browse files
committed
fixup! url: use foreach-style C++ loop
1 parent bcad6b4 commit 2440d9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/node_url.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,8 @@ class URL {
159159

160160
std::string path() const {
161161
std::string ret;
162-
for (const auto& i : context_.path) {
163-
ret += '/';
164-
ret += i;
162+
for (const std::string& i : context_.path) {
163+
ret += '/' + i;
165164
}
166165
return ret;
167166
}

0 commit comments

Comments
 (0)