From 17f94a1bd2e7bea50aab8cd7ba5b613933cbf9e4 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 25 Aug 2020 15:00:17 +1000 Subject: [PATCH] add spacing between comment and code for readability --- .../Search/EnvironmentVariables.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/EnvironmentVariables.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/EnvironmentVariables.cs index e4287a5be..6a870f149 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/EnvironmentVariables.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/EnvironmentVariables.cs @@ -28,9 +28,11 @@ namespace Flow.Launcher.Plugin.Explorer.Search // 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:\ path = path.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar; + // if we don't have an absolute path, we use Path.GetFullPath to get one. // for example, if %homepath% is \Users\John we turn it to C:\Users\John path = Path.IsPathFullyQualified(path) ? path : Path.GetFullPath(path); + // Variables are returned with a mixture of all upper/lower case. // Call ToLower() to make the results look consistent envStringPaths.Add(special.Key.ToString().ToLower(), path);