Skip to content

Commit

Permalink
Add bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyash86 committed Jun 21, 2023
1 parent b1930ff commit 52b7219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebGoat.NET/Data/BlogEntryRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public List<BlogEntry> GetTopBlogEntries(int numberOfEntries, int startPosition)
.Skip(startPosition)
.Take(numberOfEntries);

if(blogEntries.FirstOrDefault() != null)
if(blogEntries != null)
DummyLogger.Log("Entries found!");

return blogEntries.ToList();
Expand Down

0 comments on commit 52b7219

Please sign in to comment.