Skip to content

Simplify returning command name #2123

@waldekmastykarz

Description

@waldekmastykarz

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! 😎)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions