Skip to content

Commit

Permalink
(GH-186) Uninstall - no prompt for one version
Browse files Browse the repository at this point in the history
If there is only one version installed, uninstall should not prompt for
which version to remove. It should just move forward removing that
version.
  • Loading branch information
ferventcoder committed Apr 13, 2015
1 parent ccd3c65 commit 1502208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ public ConcurrentDictionary<string, PackageResult> uninstall_run(ChocolateyConfi
}

var packageVersionsToRemove = installedPackageVersions.ToList();
if (!config.AllVersions)
if (!config.AllVersions && installedPackageVersions.Count > 1)
{
if (config.PromptForConfirmation)
{
Expand Down

0 comments on commit 1502208

Please sign in to comment.