Skip to content

Commit

Permalink
";" fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
v0id-strike committed Jan 9, 2025
1 parent cacbe78 commit ffd66ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/src/interactor_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -770,13 +770,14 @@ interactor& interactor_impl::initCommands()
{
if (args.size() < 2)
{
throw interactor_impl::invalid_args_exception("alias command requires at least 2 arguments")
throw interactor_impl::invalid_args_exception("alias command requires at least 2 arguments");

Check warning on line 773 in library/src/interactor_impl.cxx

View check run for this annotation

Codecov / codecov/patch

library/src/interactor_impl.cxx#L773

Added line #L773 was not covered by tests
}

// Validate the alias arguments
const std::string& aliasName = args[0];
// Combine all remaining arguments into the alias command
std::string aliasCommand;

for (size_t i = 1; i < args.size(); ++i)
{
if (i > 1)
Expand All @@ -789,7 +790,8 @@ interactor& interactor_impl::initCommands()
// Prevent recursion
if (aliasName == aliasCommand)
{
throw interactor_impl::invalid_args_exception("Alias cannot reference itself: " + aliasName);
throw interactor_impl::invalid_args_exception(
"Alias cannot reference itself: " + aliasName);

Check warning on line 794 in library/src/interactor_impl.cxx

View check run for this annotation

Codecov / codecov/patch

library/src/interactor_impl.cxx#L793-L794

Added lines #L793 - L794 were not covered by tests
}

// Add alias to the map
Expand Down

0 comments on commit ffd66ef

Please sign in to comment.