Skip to content

Commit 0535aff

Browse files
committed
fix more typos
1 parent 2d08875 commit 0535aff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/code/LocalServerApiCalls.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,12 +1090,12 @@ private void GetMetadataFilesFromPath(string dirPath, string packageName, out st
10901090
ps1FilePath = String.Empty;
10911091
nuspecFilePath = String.Empty;
10921092

1093-
var discoveredFiles = Directory.GetFiles(tempDiscoveryPath, "*.*", SearchOption.AllDirectories);
1093+
var discoveredFiles = Directory.GetFiles(dirPath, "*.*", SearchOption.AllDirectories);
10941094
string pkgNamePattern = $"{packageName}*";
10951095
Regex rgx = new(pkgNamePattern, RegexOptions.IgnoreCase);
1096-
foreach (var file in foundFiles)
1096+
foreach (var file in discoveredFiles)
10971097
{
1098-
if (rgx.IsMatch(discoveredFiles))
1098+
if (rgx.IsMatch(file))
10991099
{
11001100
if (file.EndsWith("psd1"))
11011101
{

0 commit comments

Comments
 (0)