mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
fixing warnings, per ryan suggestion, suprressing warning now. we'll revisit the if debug blocks later (#6010)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user