Skip to content

Commit

Permalink
#591 fix code analysis error
Browse files Browse the repository at this point in the history
  • Loading branch information
mwallner committed May 22, 2018
1 parent f5a3375 commit fce474c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/ChocolateyGui/Services/ChocolateyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public async Task<PackageResults> Search(string query, PackageSearchOptions opti
config.ListCommand.Exact = options.MatchQuery;
if (!string.IsNullOrWhiteSpace(options.Source))
{
if (string.IsNullOrEmpty(query) || !options.SearchInAllRepos) {
if (string.IsNullOrEmpty(query) || !options.SearchInAllRepos)
{
config.Sources = options.Source;
}
}
Expand Down

0 comments on commit fce474c

Please sign in to comment.