Skip to content

Commit

Permalink
feat: remove checked from list length member access
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Jun 8, 2023
1 parent b54466b commit 41cdecf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Momento.Sdk/Responses/CacheListLengthResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Success(_ListLengthResponse response)
{
if (response.ListCase == _ListLengthResponse.ListOneofCase.Found)
{
Length = checked((int)response.Found.Length);
Length = (int)response.Found.Length;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Momento.Sdk/Responses/CacheListPopBackResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class Hit : CacheListPopBackResponse
public Hit(_ListPopBackResponse response)
{
this.value = response.Found.Back;
ListLength = checked((int)response.Found.ListLength);
ListLength = (int)response.Found.ListLength;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Momento.Sdk/Responses/CacheListPopFrontResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class Hit : CacheListPopFrontResponse
public Hit(_ListPopFrontResponse response)
{
this.value = response.Found.Front;
ListLength = checked((int)response.Found.ListLength);
ListLength = (int)response.Found.ListLength;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Momento.Sdk/Responses/CacheListRetainResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Success : CacheListRetainResponse
/// <param name="response">The cache response</param>
public Success(_ListRetainResponse response)
{
ListLength = checked((int)response.Found.ListLength);
ListLength = (int)response.Found.ListLength;
}

/// <inheritdoc />
Expand Down

0 comments on commit 41cdecf

Please sign in to comment.