Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump csharpier from 0.26.5 to 0.26.7 #200

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.26.5",
"version": "0.26.7",
"commands": [
"dotnet-csharpier"
]
Expand Down
15 changes: 8 additions & 7 deletions Src/VTEX/VTEXContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@ private Order GetOrderInternal(string orderId)
}
else if (
transaction.TransactionId != null
&& !transaction
.TransactionId
.Equals(@"NO-PAYMENT", StringComparison.InvariantCultureIgnoreCase)
&& !transaction.TransactionId.Equals(
@"NO-PAYMENT",
StringComparison.InvariantCultureIgnoreCase
)
)
{
LogConsumer.Info(@"Bank bill {0}", order.Sequence);
Expand Down Expand Up @@ -297,10 +298,10 @@ private Order GetOrderInternal(string orderId)
}

if (
order
.ClientProfileData
.Email
.IndexOf(@"ct.vtex", StringComparison.InvariantCultureIgnoreCase) != -1
order.ClientProfileData.Email.IndexOf(
@"ct.vtex",
StringComparison.InvariantCultureIgnoreCase
) != -1
)
{
order.ClientProfileData.Email = @"[email protected]";
Expand Down
21 changes: 8 additions & 13 deletions Src/VTEX/VTEXWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@
return _internalUserAgent;
}

var assembly = System

Check warning on line 80 in Src/VTEX/VTEXWrapper.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Possible 'System.NullReferenceException'

Possible 'System.NullReferenceException'
.Reflection
.Assembly
.GetAssembly(typeof(VTEXWrapper))
.Reflection.Assembly.GetAssembly(typeof(VTEXWrapper))
.GetName();
_internalUserAgent = $@"{assembly.Name}/{assembly.Version}";
return _internalUserAgent;
Expand Down Expand Up @@ -288,16 +286,13 @@
{
client.DefaultRequestHeaders.ExpectContinue = false;
client.DefaultRequestHeaders.Accept.Clear();
client
.DefaultRequestHeaders
.Accept
.Add(new MediaTypeWithQualityHeaderValue(@"application/json"));
client
.DefaultRequestHeaders
.TryAddWithoutValidation(
@"User-Agent",
$@"guiBranco-VTEX-SDK-dotnet {InternalUserAgent} +https://github.com/guibranco/VTEX-SDK-dotnet"
);
client.DefaultRequestHeaders.Accept.Add(
new MediaTypeWithQualityHeaderValue(@"application/json")
);
client.DefaultRequestHeaders.TryAddWithoutValidation(
@"User-Agent",
$@"guiBranco-VTEX-SDK-dotnet {InternalUserAgent} +https://github.com/guibranco/VTEX-SDK-dotnet"
);
if (!requiresAuthentication)
{
return;
Expand Down
3 changes: 1 addition & 2 deletions Tests/VTEX.Tests/Health/VtexHealthClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ public async Task ValidateHealthClient()
.ReturnsAsync(fixtures);

var result = await clientMock
.Object
.GetPlatformStatuesAsync(CancellationToken.None)
.Object.GetPlatformStatuesAsync(CancellationToken.None)
.ConfigureAwait(false);

Assert.NotNull(result);
Expand Down
Loading