Skip to content

Commit 5c4c7cd

Browse files
committed
remove unused code
1 parent 843211b commit 5c4c7cd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/code/LocalServerApiCalls.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -678,23 +678,14 @@ private Hashtable GetMetadataFromNupkg(string packageName, string packagePath, s
678678
_cmdletPassedIn.WriteVerbose($"file found: " + x);
679679
}
680680

681-
var files = Directory.EnumerateFiles(tempDiscoveryPath, "*.*", SearchOption.AllDirectories).Where(
682-
s => s.Equals($"{packageName}.nuspec", StringComparison.InvariantCultureIgnoreCase));
683-
684-
_cmdletPassedIn.WriteVerbose($"files len: {files.Count()}");
685-
686-
foreach (var x in files){
687-
_cmdletPassedIn.WriteVerbose($"file : {x}");
688-
}
689-
690681
// string psd1FilePath = Path.Combine(tempDiscoveryPath, $"{packageName}.psd1");
691682
// string ps1FilePath = Path.Combine(tempDiscoveryPath, $"{packageName}.ps1");
692683
// string nuspecFilePath = Path.Combine(tempDiscoveryPath, $"{packageName}.nuspec");
693684

694685
List<string> pkgTags = new List<string>();
695686
_cmdletPassedIn.WriteVerbose($"nuspecFilePath: {nuspecFilePath}");
696687

697-
if (files.Contains(psd1FilePath))
688+
if (File.Exists(psd1FilePath))
698689
{
699690
_cmdletPassedIn.WriteDebug($"Attempting to read module manifest file '{psd1FilePath}'");
700691
if (!Utils.TryReadManifestFile(psd1FilePath, out pkgMetadata, out Exception readManifestError))

0 commit comments

Comments
 (0)