Skip to content

Commit 28e2cb1

Browse files
committed
More clean up
1 parent 5b866f1 commit 28e2cb1

2 files changed

Lines changed: 3 additions & 32 deletions

File tree

src/code/GetHelper.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -95,39 +95,10 @@ public IEnumerable<PSResourceInfo> GetPackagesFromPath(
9595
bool selectPrereleaseOnly)
9696
{
9797
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath()");
98-
if (name.Length < 1 )
99-
{
100-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: length of names less than 1");
101-
}
102-
if (pathsToSearch.Count < 1 )
103-
{
104-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: length of pathsToSearch less than 1");
105-
}
106-
10798
List<string> pkgPathsByName = FilterPkgPathsByName(name, pathsToSearch);
10899

109-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath():: entering filterpkgpathsbyversion");
110-
if (versionRange == null )
111-
{
112-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: versionRange is null");
113-
}
114-
if (pkgPathsByName.Count < 1 )
115-
{
116-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: length of pkgPathsByName less than 1");
117-
}
118-
119-
if (_scriptDictionary == null)
120-
{
121-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: _scriptDictionary is null");
122-
}
123-
124100
foreach (string pkgPath in FilterPkgPathsByVersion(versionRange, pkgPathsByName, selectPrereleaseOnly))
125101
{
126-
if (pkgPath == null)
127-
{
128-
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: pkgPath is null");
129-
}
130-
131102
PSResourceInfo pkg = OutputPackageObject(pkgPath, _scriptDictionary);
132103
if (pkg != null)
133104
{

src/code/NuGetServerAPICalls.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public NuGetServerAPICalls (PSRepositoryInfo repository, PSCmdlet cmdletPassedIn
5050

5151
public override Task<FindResults> FindVersionAsync(string packageName, string version, ResourceType type)
5252
{
53-
throw new NotImplementedException();
53+
throw new NotImplementedException("FindVersionAsync is not implemented for NuGetServerAPICalls.");
5454
}
5555

5656
public override Task<FindResults> FindVersionGlobbingAsync(string packageName, VersionRange versionRange, bool includePrerelease, ResourceType type, bool getOnlyLatest)
5757
{
58-
throw new NotImplementedException();
58+
throw new NotImplementedException("FindVersionGlobbingAsync is not implemented for NuGetServerAPICalls.");
5959
}
6060
/// <summary>
6161
/// Find method which allows for searching for all packages from a repository and returns latest version for each.
@@ -194,7 +194,7 @@ public override FindResults FindName(string packageName, bool includePrerelease,
194194

195195
public override Task<FindResults> FindNameAsync(string packageName, bool includePrerelease, ResourceType type)
196196
{
197-
throw new NotImplementedException();
197+
throw new NotImplementedException("FindNameAsync is not implemented for NuGetServerAPICalls.");
198198
}
199199

200200
/// <summary>

0 commit comments

Comments
 (0)