Skip to content

Commit

Permalink
(build) Fix stylecop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gep13 committed Apr 20, 2019
1 parent 4711167 commit a4ef707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ChocolateyGui/Services/ChocolateyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ public async Task<IEnumerable<Package>> GetInstalledPackages()
if (chocoConfig.Sources != null)
{
var packages = await _choco.ListAsync<PackageResult>();
return (packages)
return packages
.Select(package => GetMappedPackage(_choco, package, _mapper, true))
.ToArray();
}
else
{
var nugetService = _choco.Container().GetInstance<INugetService>();
var packages = await Task.Run(() => nugetService.list_run(chocoConfig));
return (packages)
return packages
.Select(package => GetMappedPackage(_choco, package, _mapper, true))
.ToArray();
}
Expand Down

0 comments on commit a4ef707

Please sign in to comment.