Skip to content

Commit ee7de38

Browse files
committed
Implemented expression-bodied method
1 parent 9034c85 commit ee7de38

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Ignia.Topics.Tests/TestDoubles/FakeTopicRepository.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ public FakeTopicRepository() : base() {
5151
/// <param name="topicId">The topic identifier.</param>
5252
/// <param name="isRecursive">Determines whether or not to recurse through and load a topic's children.</param>
5353
/// <returns>A topic object.</returns>
54-
public override Topic Load(int topicId, bool isRecursive = true) {
55-
return (topicId < 0)? _cache :_cache.FindFirst(t => t.Id.Equals(topicId));
56-
}
54+
public override Topic Load(int topicId, bool isRecursive = true) =>
55+
(topicId < 0)? _cache :_cache.FindFirst(t => t.Id.Equals(topicId));
5756

5857
/// <summary>
5958
/// Loads a topic (and, optionally, all of its descendants) based on the specified key name.

0 commit comments

Comments
 (0)