Skip to content

Commit

Permalink
Update library/src/interactor_impl.cxx
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Westphal <[email protected]>
  • Loading branch information
void-inject and mwestphal authored Jan 11, 2025
1 parent 06f791d commit 221aed9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions library/src/interactor_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 221aed9

Please sign in to comment.