From 221aed9ba4a9e69bd66db8f3b324461da2e68f3b Mon Sep 17 00:00:00 2001 From: Void Inject <167923082+void-inject@users.noreply.github.com> Date: Sat, 11 Jan 2025 15:33:19 +0500 Subject: [PATCH] Update library/src/interactor_impl.cxx Co-authored-by: Mathieu Westphal --- library/src/interactor_impl.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/library/src/interactor_impl.cxx b/library/src/interactor_impl.cxx index 4dca504166..b5db1f3b7a 100644 --- a/library/src/interactor_impl.cxx +++ b/library/src/interactor_impl.cxx @@ -778,11 +778,8 @@ interactor& interactor_impl::initCommands() // Validate the alias arguments const std::string& aliasName = args[0]; // Combine all remaining arguments into the alias command - std::string aliasCommand; - aliasCommand = std::accumulate(args.begin() + 1, args.end(), std::string(" ")); - - // Add alias to the map - this->Internals->AliasMap[aliasName] = aliasCommand; + // Add alias command to the map + this->Internals->AliasMap[aliasName] = std::accumulate(args.begin() + 1, args.end(), std::string(" ")); log::info("Alias added: ", aliasName, " → ", aliasCommand); }); return *this;