mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix nullabl warnings
This commit is contained in:
parent
5df56334ee
commit
222ef41c8f
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
||||||
|
|
||||||
foreach (DictionaryEntry special in Environment.GetEnvironmentVariables())
|
foreach (DictionaryEntry special in Environment.GetEnvironmentVariables())
|
||||||
{
|
{
|
||||||
var path = special.Value.ToString();
|
var path = special.Value!.ToString();
|
||||||
// we add a trailing slash to the path to make sure drive paths become valid absolute paths.
|
// we add a trailing slash to the path to make sure drive paths become valid absolute paths.
|
||||||
// for example, if %systemdrive% is C: we turn it to C:\
|
// for example, if %systemdrive% is C: we turn it to C:\
|
||||||
path = path.EnsureTrailingSlash();
|
path = path.EnsureTrailingSlash();
|
||||||
|
|
@ -61,7 +61,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
||||||
{
|
{
|
||||||
// Variables are returned with a mixture of all upper/lower case.
|
// Variables are returned with a mixture of all upper/lower case.
|
||||||
// Call ToUpper() to make the results look consistent
|
// Call ToUpper() to make the results look consistent
|
||||||
_envStringPaths.Add(special.Key.ToString().ToUpper(), path);
|
_envStringPaths.Add(special.Key.ToString()!.ToUpper(), path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue