mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
[Wox.Plugin] Enable analyzer and fix warnings (#16547)
This commit is contained in:
committed by
GitHub
parent
9cf39654d9
commit
ec3ea5c4ae
@@ -187,7 +187,7 @@ namespace Wox.Plugin.Common
|
||||
|
||||
if (string.IsNullOrEmpty(Path))
|
||||
{
|
||||
throw new Exception("Browser path is null or empty.");
|
||||
throw new ArgumentOutOfRangeException(nameof(Path), "Browser path is null or empty.");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -217,7 +217,7 @@ namespace Wox.Plugin.Common
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
|
||||
throw new Exception("Could not load indirect string.");
|
||||
throw new ArgumentNullException(nameof(Path), "Could not load indirect string.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user