fixing warnings, per ryan suggestion, suprressing warning now. we'll revisit the if debug blocks later (#6010)

This commit is contained in:
Clint Rutkas
2020-08-17 14:52:27 -07:00
committed by GitHub
parent dad8cbecc1
commit 2ff439dc47
2 changed files with 14 additions and 1 deletions

View File

@@ -46,7 +46,9 @@ namespace Wox.Plugin.SharedCommands
Copy(subdir.FullName, temppath);
}
}
#pragma warning disable CS0168 // Variable is declared but never used. Due to #if debug vs release statement
catch (Exception e)
#pragma warning restore CS0168 // Variable is declared but never used
{
#if DEBUG
throw e;
@@ -76,7 +78,9 @@ namespace Wox.Plugin.SharedCommands
return true;
}
#pragma warning disable CS0168 // Variable is declared but never used. Due to #if debug vs release statement
catch (Exception e)
#pragma warning restore CS0168 // Variable is declared but never used
{
#if DEBUG
throw e;
@@ -96,7 +100,9 @@ namespace Wox.Plugin.SharedCommands
Directory.Delete(path, true);
}
}
#pragma warning disable CS0168 // Variable is declared but never used. Due to #if debug vs release statement
catch (Exception e)
#pragma warning restore CS0168 // Variable is declared but never used
{
#if DEBUG
throw e;