Skip to content

Commit

Permalink
fix: Remove SonarQube code smell (S6562, S6588)
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Jul 12, 2023
1 parent 655f4b2 commit a465960
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Testcontainers/Clients/TestcontainersClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ public Task<long> GetContainerExitCodeAsync(string id, CancellationToken ct = de
/// <inheritdoc />
public Task<(string Stdout, string Stderr)> GetContainerLogsAsync(string id, DateTime since = default, DateTime until = default, bool timestampsEnabled = true, CancellationToken ct = default)
{
var unixEpoch = new DateTime(1970, 1, 1);
#if NETSTANDARD2_1_OR_GREATER
var unixEpoch = DateTime.UnixEpoch;
#else
var unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
#endif

if (default(DateTime).Equals(since))
{
Expand Down

0 comments on commit a465960

Please sign in to comment.