diff --git a/Userland/copy.cpp b/Userland/copy.cpp index 80cfe945fb..a14409029f 100644 --- a/Userland/copy.cpp +++ b/Userland/copy.cpp @@ -66,13 +66,7 @@ Options parse_options(int argc, char* argv[]) } else { // Copy the rest of our command-line args. StringBuilder builder; - bool first = true; - for (auto& word : text) { - if (!first) - builder.append(' '); - first = false; - builder.append(word); - } + builder.join(' ', text); options.data = builder.to_string(); }