Skip to content

Commit 034cf59

Browse files
committed
Update DiffRunner.cs
1 parent 7a7ba79 commit 034cf59

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/DiffEngine/DiffRunner.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static LaunchResult Launch(DiffTool tool, string tempFile, string targetF
1515
GuardFiles(tempFile, targetFile);
1616

1717
return InnerLaunch(
18-
([NotNullWhen(true)] out ResolvedTool? resolved) => DiffTools.TryFindByName(tool, out resolved),
18+
([NotNullWhen(true)] out resolved) => DiffTools.TryFindByName(tool, out resolved),
1919
tempFile,
2020
targetFile,
2121
encoding);
@@ -26,7 +26,7 @@ public static Task<LaunchResult> LaunchAsync(DiffTool tool, string tempFile, str
2626
GuardFiles(tempFile, targetFile);
2727

2828
return InnerLaunchAsync(
29-
([NotNullWhen(true)] out ResolvedTool? resolved) => DiffTools.TryFindByName(tool, out resolved),
29+
([NotNullWhen(true)] out resolved) => DiffTools.TryFindByName(tool, out resolved),
3030
tempFile,
3131
targetFile,
3232
encoding);
@@ -40,7 +40,7 @@ public static LaunchResult Launch(string tempFile, string targetFile, Encoding?
4040
GuardFiles(tempFile, targetFile);
4141

4242
return InnerLaunch(
43-
([NotNullWhen(true)] out ResolvedTool? tool) =>
43+
([NotNullWhen(true)] out tool) =>
4444
{
4545
var extension = Path.GetExtension(tempFile);
4646
return DiffTools.TryFindByExtension(extension, out tool);
@@ -58,7 +58,7 @@ public static Task<LaunchResult> LaunchAsync(string tempFile, string targetFile,
5858
GuardFiles(tempFile, targetFile);
5959

6060
return InnerLaunchAsync(
61-
([NotNullWhen(true)] out ResolvedTool? tool) =>
61+
([NotNullWhen(true)] out tool) =>
6262
DiffTools.TryFindForInputFilePath(tempFile, out tool),
6363
tempFile,
6464
targetFile,
@@ -72,7 +72,7 @@ public static Task<LaunchResult> LaunchForTextAsync(string tempFile, string targ
7272
GuardFiles(tempFile, targetFile);
7373

7474
return InnerLaunchAsync(
75-
([NotNullWhen(true)] out ResolvedTool? tool) =>
75+
([NotNullWhen(true)] out tool) =>
7676
DiffTools.TryFindForText(out tool),
7777
tempFile,
7878
targetFile,
@@ -87,7 +87,7 @@ public static LaunchResult LaunchForText(string tempFile, string targetFile, Enc
8787
GuardFiles(tempFile, targetFile);
8888

8989
return InnerLaunch(
90-
([NotNullWhen(true)] out ResolvedTool? tool) =>
90+
([NotNullWhen(true)] out tool) =>
9191
DiffTools.TryFindForText(out tool),
9292
tempFile,
9393
targetFile,
@@ -99,7 +99,7 @@ public static LaunchResult Launch(ResolvedTool tool, string tempFile, string tar
9999
GuardFiles(tempFile, targetFile);
100100

101101
return InnerLaunch(
102-
([NotNullWhen(true)] out ResolvedTool? resolvedTool) =>
102+
([NotNullWhen(true)] out resolvedTool) =>
103103
{
104104
resolvedTool = tool;
105105
return true;
@@ -114,7 +114,7 @@ public static Task<LaunchResult> LaunchAsync(ResolvedTool tool, string tempFile,
114114
GuardFiles(tempFile, targetFile);
115115

116116
return InnerLaunchAsync(
117-
([NotNullWhen(true)] out ResolvedTool? resolvedTool) =>
117+
([NotNullWhen(true)] out resolvedTool) =>
118118
{
119119
resolvedTool = tool;
120120
return true;

0 commit comments

Comments
 (0)