minor cleanup

This commit is contained in:
mgroves 2011-04-01 23:30:58 -04:00
parent d464f7f313
commit 50fb96b5b5
2 changed files with 2 additions and 2 deletions

View file

@ -28,10 +28,11 @@ namespace MonoStockPortfolio.Core.Services
{
try
{
var results = new List<PositionResultsViewModel>();
var positions = _portRepo.GetAllPositions(portfolioID);
if (!positions.Any()) return new List<PositionResultsViewModel>();
var results = new List<PositionResultsViewModel>();
var tickers = positions.Select(p => p.Ticker);
var stockData = _stockRepo.GetStockQuotes(tickers);

View file

@ -78,7 +78,6 @@
<Compile Include="Activites\PortfolioScreen\PositionArrayAdapter.cs" />
<Compile Include="Framework\ActivityExtensions.cs" />
<Compile Include="Framework\ContextExtensions.cs" />
<Compile Include="Framework\GenericArrayAdapter.cs" />
<Compile Include="Activites\PortfolioScreen\PortfolioActivity.cs" />
<Compile Include="Activites\MainScreen\MainActivity.cs" />
<Compile Include="Activites\EditPositionScreen\EditPositionActivity.cs" />