Formatting (C#)

This commit is contained in:
Waldi Ravens 2015-02-23 10:14:50 +01:00
parent 524ddbcfc7
commit 30f53da574

View File

@ -60,8 +60,8 @@ namespace UpdateAssemblyInfo
var clrTags = new CommandLineRunner();
var gitPath = GetGitPath();
string exceptionMessage;
if (clrHash.RunCommandAndGetOutput(gitPath, "rev-parse --verify HEAD", workingFolder)
&& clrTags.RunCommandAndGetOutput(gitPath, "describe --tags", workingFolder))
if (clrHash.RunCommandAndGetOutput(gitPath, "rev-parse --verify HEAD", workingFolder) &&
clrTags.RunCommandAndGetOutput(gitPath, "describe --tags", workingFolder))
{
try
{
@ -165,7 +165,7 @@ namespace UpdateAssemblyInfo
return path;
}
}
catch {}
catch { }
Console.WriteLine("WARNING: Might not be able to run Git command line tool!");
return "git";