add comment explaining why location check is needed

This commit is contained in:
Jeremy Wu 2021-01-24 21:08:48 +11:00
parent e9462e8994
commit bfa1aabe35

View file

@ -70,6 +70,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
if (isEnvironmentVariablePath)
locationPath = EnvironmentVariables.TranslateEnvironmentVariablePath(locationPath);
// Check that actual location exists, otherwise directory search will throw directory not found exception
if (!FilesFolders.LocationExists(FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath)))
return results;