Resharper Code cleanup.

This commit is contained in:
kay.one 2011-10-06 23:57:43 -07:00
commit 6a9ee3f0b0
15 changed files with 54 additions and 80 deletions

View file

@ -19,7 +19,7 @@ namespace NzbDrone
public static void Attach()
{
DTE2 dte2;
dte2 = (DTE2)Marshal.
dte2 = (DTE2) Marshal.
GetActiveObject("VisualStudio.DTE.10.0");
var pa = new ProcessAttacher(dte2, "iisexpress", 10);
@ -27,7 +27,6 @@ namespace NzbDrone
return;
// Get an instance of the currently running Visual Studio IDE.
}
#region private
@ -88,9 +87,9 @@ namespace NzbDrone
private AttachResult PessimisticAttach(AttachType attachType)
{
AttachResult res = Attach(attachType);
var res = Attach(attachType);
DateTime timeout = DateTime.Now.AddSeconds(_waitTimeout);
var timeout = DateTime.Now.AddSeconds(_waitTimeout);
while (res == AttachResult.NotRunning && timeout > DateTime.Now)
{
@ -102,8 +101,6 @@ namespace NzbDrone
private bool IsBeingDebugged()
{
if (_dte.Debugger.DebuggedProcesses != null)
{
foreach (Process process in _dte.Debugger.DebuggedProcesses)