Fix CS0168 warning
This commit is contained in:
parent
85a481f93f
commit
da65ad6226
|
@ -27,14 +27,17 @@ public class VersionInfoGenerator : ISourceGenerator
|
|||
git.WaitForExit();
|
||||
return git.StandardOutput.ReadLine();
|
||||
}
|
||||
#if DEBUG
|
||||
catch (Exception e)
|
||||
{
|
||||
#if DEBUG
|
||||
return $"{e.GetType()}: {e.Message}";
|
||||
#else
|
||||
return null;
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
catch (Exception)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Execute(GeneratorExecutionContext context)
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue