remove unnecessary conditional variable in if- isEnvironmentVariable

This commit is contained in:
Jeremy Wu 2020-06-22 05:02:42 +10:00
parent 617ef3b05d
commit d47a1ed5a1

View file

@ -50,7 +50,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
// Query is a location path with a full environment variable, eg. %appdata%\somefolder\
var isEnvironmentVariablePath = querySearch.Substring(1).Contains("%\\");
if (!FilesFolders.IsLocationPathString(querySearch) && !isEnvironmentVariable && !isEnvironmentVariablePath)
if (!FilesFolders.IsLocationPathString(querySearch) && !isEnvironmentVariablePath)
return WindowsIndexFilesAndFoldersSearch(query, querySearch);
var locationPath = querySearch;