Skip to content

Commit

Permalink
fix: Remove Sonar code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Oct 3, 2024
1 parent e96d4e6 commit f4966d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Testcontainers.Neo4j/Neo4jBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public Neo4jBuilder WithEnterpriseEdition(bool acceptLicenseAgreement)
{
tag = image.Tag;
}
else if (image.MatchVersion(v => operatingSystems.Any(v.Contains)))
else if (image.MatchVersion(v => Array.Exists(operatingSystems, v.Contains)))
{
MatchEvaluator evaluator = match => $"{enterpriseSuffix}-{match.Value}";
tag = Regex.Replace(image.Tag, string.Join("|", operatingSystems), evaluator);
tag = Regex.Replace(image.Tag, string.Join("|", operatingSystems), evaluator, RegexOptions.None, TimeSpan.FromSeconds(1));
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/Testcontainers/Clients/DockerImageOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task CreateAsync(IImage image, IDockerRegistryAuthenticationConfigu
{
var createParameters = new ImagesCreateParameters
{
FromImage = image.FullName
FromImage = image.FullName,
};

var authConfig = new AuthConfig
Expand Down
1 change: 0 additions & 1 deletion tests/Testcontainers.Platform.Linux.Tests/Usings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
global using System.Text;
global using System.Threading;
global using System.Threading.Tasks;
global using Docker.DotNet;
global using Docker.DotNet.Models;
global using DotNet.Testcontainers;
global using DotNet.Testcontainers.Builders;
Expand Down

0 comments on commit f4966d8

Please sign in to comment.