Skip to content

Remove clone args - #7910

Merged
Travis Plunk (TravisEz13) merged 3 commits into
PowerShell:masterfrom
iSazonov:remove-clone-args
Oct 29, 2018
Merged

Travis Plunk (TravisEz13) merged 3 commits into
PowerShell:masterfrom
iSazonov:remove-clone-args

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Oct 1, 2018 •

Copy link
Copy Markdown
Collaborator

PR Summary

Close #7457.

The cleanup is needed after #7449 and #2538.

  • args is never null
  • We never change the args array and exclude cloning.

PR Checklist

@iSazonov Ilya (iSazonov) added the Issue-Code Cleanup the issue is for cleaning up the code with no impact on functionality label Oct 1, 2018
@TravisEz13

Copy link
Copy Markdown
Member

Dongbo Wang (@daxian-dbw) Not sure why this was there in the first place.

@anmenaga Andrew (anmenaga) left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to get a [feature] test pass on this. Thanks.

Also, Dongbo Wang (@daxian-dbw) any ideas regarding Travis's question? I wonder the same thing as well...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably leave the null check in the code.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is c# convention that args is never null?

@iSazonov

Copy link
Copy Markdown
Collaborator Author

Dongbo Wang (@daxian-dbw) Can you confirm that we can merge?

@TravisEz13
Travis Plunk (TravisEz13) merged commit c36e4ad into PowerShell:master Oct 29, 2018
@iSazonov
Ilya (iSazonov) deleted the remove-clone-args branch October 30, 2018 03:03
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue-Code Cleanup the issue is for cleaning up the code with no impact on functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup args clone

3 participants