In some commands we return command name using:
return `${commands.O365GROUP_GET}`;
Since the only thing we're returning is the actual command name, there is no need to use string interpolation and we should refactor it to just:
return commands.O365GROUP_GET;
O365GROUP_GET is not the only command where we do this, so we should check all commands as a part of this refactoring (regex to the rescue! 😎)
In some commands we return command name using:
Since the only thing we're returning is the actual command name, there is no need to use string interpolation and we should refactor it to just:
O365GROUP_GET is not the only command where we do this, so we should check all commands as a part of this refactoring (regex to the rescue! 😎)