Skip to content

Commit 929f111

Browse files
azp: cli tool azexpand fix error for missing --local-repository switch (#542)
* unexpected null error due to returning a null task in implementation
1 parent 27a9bfa commit 929f111

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/Runner.Client/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ public Task<string> ReadFile(string repositoryAndRef, string path)
877877
{
878878
var reporoot = repositoryAndRef == null ? Path.GetFullPath(handle.Directory ?? ".") : (from r in handle.LocalRepositories where MatchRepository(r, repositoryAndRef) select Path.GetFullPath(r.Substring($"{repositoryAndRef}=".Length))).LastOrDefault();
879879
if(string.IsNullOrEmpty(reporoot)) {
880-
return null;
880+
return Task.FromResult<string>(null);
881881
}
882882
return File.ReadAllTextAsync(Path.Join(reporoot, path), Encoding.UTF8);
883883
}

Diff for: src/azure-pipelines-vscode-ext/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### v0.2.9
22
- Fix file picker of v0.2.8 to be usable
33
- Fix variables in template parameter showing incorrect errors
4+
- Fix variables overridden in nested scopes showing incorrect errors
45

56
### v0.2.8
67
- Suppress mapping schema errors while parsing if / each expressions

0 commit comments

Comments
 (0)