Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected bool DoesProviderSupportShouldProcess(string[] paths)
// may be getting piped in.
bool result = true;

if (paths != null && paths.Length >= 0)
if (paths != null)
{
foreach (string path in paths)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public Collection<int> PromptForChoice(string caption,
// choices to be picked.

// user did not pick up any choices..choose the default
if ((result.Count == 0) && (defaultChoiceKeys.Keys.Count >= 0))
if (result.Count == 0)
{
// if there's a default, pick that one.
foreach (int defaultChoice in defaultChoiceKeys.Keys)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2017,16 +2017,14 @@ private object GetItemAtPath(string path, bool test, out bool isContainer)
//
// Thus lengths 1 & 2 are container items.
//
isContainer = (pathElements.Length >= 0) &&
(pathElements.Length <= 2);
isContainer = pathElements.Length <= 2;

X509NativeStore store = null;

//
// handle invalid path depth
//
if ((pathElements.Length > 3) ||
(pathElements.Length < 0))
if (pathElements.Length > 3)
{
if (test)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ private Collection<int> EmulatePromptForMultipleChoice(string caption,
// choices to be picked.

// user did not pick up any choices..choose the default
if ((result.Count == 0) && (defaultChoiceKeys.Keys.Count >= 0))
if (result.Count == 0)
{
// if there's a default, pick that one.
foreach (int defaultChoice in defaultChoiceKeys.Keys)
Expand Down