Skip to content

Commit 222ef41

Browse files
committed
Fix nullabl warnings
1 parent 5df5633 commit 222ef41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/EnvironmentVariables.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private static void LoadEnvironmentStringPaths()
4747

4848
foreach (DictionaryEntry special in Environment.GetEnvironmentVariables())
4949
{
50-
var path = special.Value.ToString();
50+
var path = special.Value!.ToString();
5151
// we add a trailing slash to the path to make sure drive paths become valid absolute paths.
5252
// for example, if %systemdrive% is C: we turn it to C:\
5353
path = path.EnsureTrailingSlash();
@@ -61,7 +61,7 @@ private static void LoadEnvironmentStringPaths()
6161
{
6262
// Variables are returned with a mixture of all upper/lower case.
6363
// Call ToUpper() to make the results look consistent
64-
_envStringPaths.Add(special.Key.ToString().ToUpper(), path);
64+
_envStringPaths.Add(special.Key.ToString()!.ToUpper(), path);
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)