Skip to content

Commit de4544b

Browse files
committed
Fix few formatting things
1 parent 399ad48 commit de4544b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/GitVersionCore/GitVersionCacheKeyFactory.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Text;
99
using System.Linq;
1010

11-
public class GitVersionCacheKeyFactory
11+
class GitVersionCacheKeyFactory
1212
{
1313
public static GitVersionCacheKey Create(IFileSystem fileSystem, GitPreparer gitPreparer, Config overrideConfig)
1414
{
@@ -26,13 +26,13 @@ private static string GetGitSystemHash(GitPreparer gitPreparer, IFileSystem file
2626
var dotGitDirectory = gitPreparer.GetDotGitDirectory();
2727

2828
// traverse the directory and get a list of files, use that for GetHash
29-
var contents = calculateDirectoryContents(Path.Combine(dotGitDirectory, "refs"));
29+
var contents = CalculateDirectoryContents(Path.Combine(dotGitDirectory, "refs"));
3030

3131
return GetHash(contents.ToArray());
3232
}
3333

3434
// based on https://msdn.microsoft.com/en-us/library/bb513869.aspx
35-
private static List<string> calculateDirectoryContents(string root)
35+
private static List<string> CalculateDirectoryContents(string root)
3636
{
3737
var result = new List<string>();
3838

@@ -84,13 +84,11 @@ private static List<string> calculateDirectoryContents(string root)
8484
{
8585
files = Directory.GetFiles(currentDir);
8686
}
87-
8887
catch (UnauthorizedAccessException e)
8988
{
9089
Logger.WriteError(e.Message);
9190
continue;
9291
}
93-
9492
catch (DirectoryNotFoundException e)
9593
{
9694
Logger.WriteError(e.Message);

0 commit comments

Comments
 (0)