Skip to content

Commit 000a8e7

Browse files
committed
Fix stupid code move
1 parent a2445ac commit 000a8e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/GitVersion.MsBuild/Helpers/FileHelper.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ public static class FileHelper
1515
{ ".vb", VisualBasicFileContainsVersionAttribute }
1616
};
1717

18-
public static string TempPath = MakeAndGetTempPath();
18+
public static readonly string TempPath = MakeAndGetTempPath();
1919

2020
private static string MakeAndGetTempPath()
2121
{
22-
Directory.CreateDirectory(TempPath);
23-
return Path.Combine(Path.GetTempPath(), "GitVersionTask");
22+
var tempPath = Path.Combine(Path.GetTempPath(), "GitVersionTask");
23+
Directory.CreateDirectory(tempPath);
24+
return tempPath;
2425
}
2526

2627
public static void DeleteTempFiles()

0 commit comments

Comments
 (0)