mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Resharper Code cleanup.
This commit is contained in:
parent
57c296c62f
commit
6a9ee3f0b0
15 changed files with 54 additions and 80 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue