mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[CodeQuality]Address C# static analyzer suggestions (#29765)
* Address static analyzer suggestions * address feedback
This commit is contained in:
committed by
GitHub
parent
22000228e2
commit
5e7d5d1f7f
@@ -55,15 +55,12 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator
|
||||
|
||||
public List<Result> Query(Query query)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(query);
|
||||
|
||||
bool isGlobalQuery = string.IsNullOrEmpty(query.ActionKeyword);
|
||||
CultureInfo inputCulture = _inputUseEnglishFormat ? new CultureInfo("en-us") : CultureInfo.CurrentCulture;
|
||||
CultureInfo outputCulture = _outputUseEnglishFormat ? new CultureInfo("en-us") : CultureInfo.CurrentCulture;
|
||||
|
||||
if (query == null)
|
||||
{
|
||||
throw new ArgumentNullException(paramName: nameof(query));
|
||||
}
|
||||
|
||||
// Happens if the user has only typed the action key so far
|
||||
if (string.IsNullOrEmpty(query.Search))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user