Skip to content

Commit d1148d8

Browse files
committed
Address Gemini code review comments
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
1 parent eb32066 commit d1148d8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/OpenFeature/Model/ImmutableMetadata.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ public sealed class ImmutableMetadata
1717
/// <value>
1818
/// <c>true</c> if this instance is empty; otherwise, <c>false</c>.
1919
/// </value>
20-
public bool IsEmpty
21-
{
22-
get { return this._metadata.Count == 0; }
23-
}
20+
public bool IsEmpty => this._metadata.Count == 0;
2421

2522
/// <summary>
2623
/// Constructor for the <see cref="ImmutableMetadata"/> class.

test/OpenFeature.Tests/ImmutableMetadataTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ public void Count_ShouldReturnCountOfMetadata()
320320
public void IsEmpty_ShouldReturnTrue()
321321
{
322322
// Arrange
323-
var metadata = new Dictionary<string, object>();
324-
var flagMetadata = new ImmutableMetadata(metadata);
323+
var flagMetadata = new ImmutableMetadata();
325324

326325
// Act
327326
var result = flagMetadata.IsEmpty;

0 commit comments

Comments
 (0)