Skip to content

Commit

Permalink
correct the condition of ExpirationMin
Browse files Browse the repository at this point in the history
Signed-off-by: Takuya Iwatsuka <takuya.iwatsuka@gmail.com>
  • Loading branch information
tiwatsuka committed Feb 17, 2024
1 parent 3577da3 commit ca43f4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ internal class EmissionsDataCacheConfiguration

public void AssertValid()
{
if(ExpirationMin < 0)
if(ExpirationMin <= 0)
{
throw new ArgumentException($"Expiration period for data cache value must be greater than or equal 0.");
throw new ArgumentException($"Expiration period for data cache value must be greater than 0.");
}
}
}

0 comments on commit ca43f4e

Please sign in to comment.