diff --git a/Libraries/LibWeb/ServiceWorker/Job.cpp b/Libraries/LibWeb/ServiceWorker/Job.cpp index 267d1a178cc..f616c6c44b3 100644 --- a/Libraries/LibWeb/ServiceWorker/Job.cpp +++ b/Libraries/LibWeb/ServiceWorker/Job.cpp @@ -289,10 +289,7 @@ static void update(JS::VM& vm, GC::Ref job) auto join_paths_with_slash = [](URL::URL const& url) -> ByteString { StringBuilder builder; builder.append('/'); - for (auto const& component : url.paths()) { - builder.append(component); - builder.append('/'); - } + builder.join('/', url.paths()); return builder.to_byte_string(); };