Cleanup webrequestpscmdlet.common.cs#18596
Conversation
|
Should I remove redundant brackets ? (example: |
|
@CarloToso You could look CodeFactor issues reported for the file and fix some ones. |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
...t.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Outdated
Show resolved
Hide resolved
...t.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Outdated
Show resolved
Hide resolved
...t.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Outdated
Show resolved
Hide resolved
|
@CarloToso Please squash last commits after "revert =0" - difficult to review last changes. |
== -> is remove useless return; fixed errors revert
b893b60 to
e803d64
Compare
|
Squashed |
| } | ||
|
|
||
| if (Authentication != WebAuthenticationType.None && Token != null && Credential != null) | ||
| if (Authentication is not WebAuthenticationType.None && Token is not null && Credential is not null) |
There was a problem hiding this comment.
Please revert patterns like Authentication is not WebAuthenticationType.None. Let's limit the PR only to is null and is not null.
There was a problem hiding this comment.
Or better move this in follow PR after we merge that.
...t.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs
Outdated
Show resolved
Hide resolved
| if (xmlNode is null) | ||
| return 0; |
There was a problem hiding this comment.
| if (xmlNode is null) | |
| return 0; | |
| if (xmlNode is null) | |
| { | |
| return 0; | |
| } |
…Cmdlet/Common/WebRequestPSCmdlet.Common.cs
…Cmdlet/Common/WebRequestPSCmdlet.Common.cs
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
🎉 Handy links: |
PR Summary
Small cleanup for better readibility